安装了最新的MySQL后出现错误:
bash
mysql> alter user 'root'@'localhost' identified with mysql_native_password by '......';
ERROR 1524 (HY000): Plugin 'mysql_native_password' is not loaded
然后如果你去看网上的,要求你安装插件,但是
bash
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
解决方法
bash
alter user 'root'@'localhost' identified by 'password';
即可。
bash
Query OK, 0 rows affected (0.01 sec)