: Unable to load authentication plugin 'caching_sha2_password'.
at (:868)
at (:864)
at (:1746)
at (:1226)
at (:2191)
at (:2222)
at (:2017)
at .<init>(:779)
at .JDBC4Connection.<init>(:47)
at .newInstance0(Native Method)
at (:62)
at (:45)
at (:423)
at (:425)
at (:389)
at (:330)
at .connection_connect(:156)
at .connection_connect(:218)
at .connection_connect(:150)
at (:1572)
at (:1636)
at $CreateConnectionThread.run(:2505)
Sun Aug 27 15:43:26 CST 2023 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
由于我安装的mysql 8.0,8.0和其中一个改动就是加密认证方式发生改变:
- caching_sha2_password是8.0
- mysql_native_password是
解决方案
更改mysql的jdbc版本
直接在修改版本号即可。
mysql jdbc的maven链接:/artifact/mysql/mysql-connector-java
比如:
<>8.0.33</>