安装Mysql8.0,使用navicat登录时显示如下错误提示
错误原因:MySQL新版本(8以上版本)的用户登录账户加密方式是【caching_sha2_password】,Navicat不支持这种用户登录账户加密方式。
解决办法:
1.打开MySQL 命令行客户端
2.输入登录密码登录,查看加密方式,命令:show variables like 'default_authentication_plugin';
3.查看本地mysql用户的信息,命令:select host,user,plugin from mysql.user;
4.修改root账户的加密方式为【mysql_native_password】;命令: ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456'; (注意:注意这里最后的root是你设置的root账户的密码,我设置的是“123456“)
注意英文状态下的引号书写。
5.重新打开Navicat即可链接成功。
- authentication caching_sha password Navicat cachingauthentication caching_sha password navicat authentication caching_sha password caching authentication caching_sha password错误 mysql authentication caching_sha password authentication caching_sha navicate password caching_sha password caching navicat password runtimeerror cryptography caching_sha caching_sha插件password身份 caching_sha password错误caching caching_sha password caching plugin