mysql8.0 Authentication plugin 'caching_sha2_password' cannot be loaded

错误码:2058

原因:新版MySQL改了密码验证组件,部分第三方的连接工具(例如SQLyog)仍然使用旧版验证组件,所以要用命令把默认的新版替换成旧版。

#修改加密规则
alter user 'root'@'localhost' identified by '你的密码' password expire never;

#更新用户密码
alter user 'root'@'localhost' identified with mysql_native_password by '你的密码';

#刷新权限
flush privileges;

#重新重置密码
alter user 'root'@'localhost' identified by '你的密码';

原文地址:https://www.cnblogs.com/live41/p/13833321.html