使用Navicat建立新连接时,遇到Authentication plugin ‘caching_sha2_password‘ cannot be loaded错误:
解决方法如下:
打开mysql:
输入命令:
ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘password‘ PASSWORD EXPIRE NEVER; #修改加密规则
ALTER USER ‘root‘@‘localhost‘ IDENTIFIED WITH mysql_native_password BY ‘password‘; #更新用户密码
FLUSH PRIVILEGES; #刷新权限
参考:https://www.cnblogs.com/zhurong/p/9898675.html
Authentication plugin 'caching_sha2_password' cannot be loaded错误处理
原文地址:https://www.cnblogs.com/KisInfinite/p/11868637.html
时间: 2024-10-07 18:31:41