安装了最新的MySQL后出现错误:

mysql> alter user 'root'@'localhost' identified with mysql_native_password by '……';
ERROR 1524 (HY000): Plugin 'mysql_native_password' is not loaded

然后如果你去看网上的,要求你安装插件,但是

ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

解决方法

alter user 'root'@'localhost' identified by 'password';

即可。

Query OK, 0 rows affected (0.01 sec)
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐