使用Navicate Premium12.0 连接MySql8.0出现2059-Authentication plugin ‘caching_sha2_password‘ cannot be loaded:的错误,解决方法如下
1、打开MySQL 8.0 Command Line Client工具登陆到MySQL
2. 修改账户密码加密规则并更新用户密码
ALTER USER ‘登录名‘‘@‘localhost‘ IDENTIFIED BY ‘密码‘ PASSWORD EXPIRE NEVER;#修改加密规则
ALTER USER ‘登录名‘@‘localhost‘ IDENTIFIED WITH mysql_native_password BY ‘密码‘; #更新一下用户的密码
注意:如果提示 Operation ALTER USER failed for ‘登录名‘‘@‘localhost‘
直接把localhost换成%即可
3. 刷新权限并重置密码
FLUSH PRIVILEGES; #刷新权限
再重置下密码:alter user ‘登录名t‘@‘localhost‘ identified by ‘密码‘;
重新连接即可
Navicate连接MySQL出现2059-Authentication plugin 'caching_sha2_password' cannot be loaded:的解决方案
原文地址:https://www.cnblogs.com/nee32/p/11665876.html
时间: 2024-10-11 15:52:56