转载:https://www.jianshu.com/p/607afdbc6df6

 

刚装了mysql8.0.1,用navicat登陆不了,报错“2059 - authentication plugin caching_sha2_password”,只能用命令行登陆。

 

解决办法:

1. 用命令行登陆
mysql -u root -p;
2. use mysql
3. ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
4. flush privileges;

 

 

 

 

 

MySQL.报错2059处理方法

posted on 2019-11-12 09:44  Sincerity  阅读(654)  评论(0编辑  收藏  举报