Linux中部署tomcat连接Navicat报错2059 - Authentication plugin 'caching_sha2_password' cannot be loaded:+Xi入苟9苟g頫
这个问题搞的我头疼,原因是Navicat15.0.26不支持mysql8.0新增加的加密方式,caching_sha2_password,所以我们需要修改用户的加密方式,首先登录mysql,
mysql -uroot -p
这是我的配置信息
Mysql 8.0.27 Navicat 15.0.26 tomcat 9.0.54 jdk 1.8.0.65
查看加密方式:
show variables like 'default_authentication_plugin';
使用Mysql数据库自带的命令行客户端工具登录数据库,输入 use mysql
从数据库user表中查询mysql用户原来的身份验证插件
select user,host,plugin,authentication_string from user;
将用户使用的身份验证插件替换为之前版本使用的mysql_native_password
ALTER USER 'root'@'localhost'IDENTIFIED WITH mysql_native_password BY'root';
再次使用Navicat连接即可。
参考信息来源:Navicat连接MySQL出现2059 - authentication plugin 'caching_sha2_password' - 云+社区 - 腾讯云 (tencent.com)
我有一杯酒,足以慰风尘。