0

[转载] MySQL Change a User Password

转自:https://www.cyberciti.biz/faq/mysql-change-user-password/

How to change user password on mysql

Mysql change user password using the following method:

  1. Open the bash shell and connect to the server as root user
  2. mysql -u root -h localhost -p
  3. Run command:
  4. ALTER USER ‘userName’@’localhost’ IDENTIFIED BY ‘New-Password-Here’;

Please note that use mysql.exe on MS-Windows host as follows (first change directory where mysql.exe is located [example: “C:\Program Files\mysql\mysql-5.0.77-win32\bin”]. Let us see examples and syntax in details.

mysql sql command to change a user password

Login as root from the shell:
$ mysql -u root -p
Switch to mysql database (type command at mysql> prompt, do not include string “mysql>”):
mysql> use mysql;
The syntax is as follows for mysql database server version 5.7.5 or older: read more

0

[转载] GDB十分钟教程

GDB十分钟教程

作者: liigo
原文链接: 
http://blog.csdn.net/liigo/archive/2006/01/17/582231.aspx
日期: 2006年1月16日

本文写给主要工作在Windows操作系统下而又需要开发一些跨平台软件的程序员朋友,以及程序爱好者。

GDB是一个由GNU开源组织发布的、UNIX/LINUX操作系统下的、基于命令行的、功能强大的程序调试工具。

GDB中的命令固然很多,但我们只需掌握其中十个左右的命令,就大致可以完成日常的基本的程序调试工作。 read more