1. 程式人生 > >mysql 修改用戶密碼

mysql 修改用戶密碼

upd password mysql set 刷新緩存 cati col unknown leg

use mysql;
update user set password=‘123456‘ where user=‘root‘; //報unknown column password錯誤
update mysql.user set authentication_string=password(‘123456‘) where user=‘root‘; //修改root用戶密碼,密碼字段為authentication_string
FLUSH PRIVILEGES; //刷新緩存

mysql 修改用戶密碼