随手记录连接MySQL数据库报错Unable to load authentication plugin ‘caching_sha2_password‘
Posted 空知大仙人
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了随手记录连接MySQL数据库报错Unable to load authentication plugin ‘caching_sha2_password‘相关的知识,希望对你有一定的参考价值。
更新驱动,找到mysql安装版本对应驱动即可
连接mysql客户端报错: java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password
报这个错可能是因为用了低版本的的客户端、驱动连接高版本的mysql服务器。
解决方式有三种:升级客户端版本、修改服务端认证方式和适应服务端认证方式。
我是通过升级客户端版本解决,参考一下链接:
Upgrading to MySQL Connector/J 8.0
同时收集了其他的解决问题的链接:
连接mysql 出现:java.sql.SQLException: Unable to load authentication plugin ‘caching_sha2_password‘
以上是关于随手记录连接MySQL数据库报错Unable to load authentication plugin ‘caching_sha2_password‘的主要内容,如果未能解决你的问题,请参考以下文章