About Mysql variety of methods to modify the account password

Method One: Log Mysql modified (mysql small black box)

  Command: set password for the user name (usually root) @ localhost = password ( 'new password');

 

Method Two: Log in to edit MySQL user table

  Command: mysql> user mysql;

      mysql>update user set password=password('123') where user ='root' and host='localhost'

      mysql>fiush privileges;

Guess you like

Origin www.cnblogs.com/The-Can/p/12065749.html