MySQL.报错2059处理方法

转载: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处理方法

原文地址:https://www.cnblogs.com/Sincerity/p/11839898.html