mysql 8.0+ 首次更改密码报错解决 You must reset your password using ALTER USER statement before

问题报错

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;

更新即可

你可能感兴趣的:(mysql)