问题:连接mysql时出现java.sql.SQLException: Unable to load authentication plugin ‘caching_sha2_password’
原因:版本不一致,
mysql 5.x版本使用的是 default_authentication_plugin=mysql_native_password
mysql 8.x版本使用的是 default_authentication_plugin=caching_sha2_password
解决:修改成一致即可。
修改IDEA pom.xml 中引入的mysql版本到 8.0.15
IDEA *: java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'
最新推荐文章于 2024-05-17 16:07:35 发布