1
nullen 2017-07-21 09:06:08 +08:00
skip-grant-tables,然后重置密码。
|
2
coolair OP @nullen ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';
改了无用啊。 |
3
coolair OP UPDATE mysql.user SET authentication_string = PASSWORD('MyNewPass')
WHERE User = 'root' AND Host = 'localhost'; FLUSH PRIVILEGES; 执行这条语句,也是无效。 |
4
gotounix 2017-07-21 09:47:46 +08:00 1
update mysql.user set authentication_string=null, plugin="mysql_native_password" where User='root';
|