Navicat登陆Mysql8.0报“caching_sha_password”错误
官方说明:https://dev.mysql.com/doc/refman/8.0/en/caching-sha2-pluggable-authentication.html
解决方案:
1.使用本地mysql命令行登录;
2 .修改登录验证方式
--修改登录验证方式
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456';
--使其生效
FLUSH PRIVILEGES;
--可以查一下看看 plugin 是否为“mysql_native_password”
SELECT Host, User, plugin from user;
4.验证下
标签:Navicat,sha,Mysql8.0,mysql,caching,password,native From: https://www.cnblogs.com/anhaoyang/p/navicatdeng-lu-chu-xian-caching_sha_password-cuo-wu-t2