進度條

Console 下修改使用者密碼

更新日期:

1. 修改自己密碼

$ mysql -u 'UserName' -p

mysql> set password for 'UserName'@'localhost' = 'NewPassword';

 

 

2. 超級使用者或有權限的帳號修改其他人密碼

$ mysql -u root -p

mysql> update mysql.user set authentication_string = password('NewPassword') where user =

'UserName';

mysql> flush privileges;