mysql 修改 root 的密码:
|
|
|
|
ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘123456’;
ALTER USER ‘root’@’%’ IDENTIFIED WITH mysql_native_password BY ‘123456’;
ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘’;
ALTER USER ‘root’@’%’ IDENTIFIED WITH mysql_native_password BY ‘’;
问题报错 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
问题解决: 修改密码
mysql> alter user ‘root’@‘localhost’ identified by ‘Root@123456’;
mysql>flush privileges;
更新即可