契机
1.Unable to load authentication plugin ‘caching_sha2_password‘
主要原因8.x版本的验证模块和之前版本不同:
5.x版本是:default_authentication_plugin=mysql_native_password
8.x版本就是:default_authentication_plugin=caching_sha2_password
解决方案
将依赖版本换成8.0.11即可
2.The server time zone value ‘???±???±???¤’ is
解决办法:
在连接字符串后面加上?serverTimezone=UTC
其中UTC是统一标准世界时间。
完整的连接字符串示例:jdbc:mysql://localhost:3306/test?serverTimezone=UTC
3.Cannot resolve com.mysq.jdbc.Connection.ping method. Will use ‘SELECT 1’ instead
升级德鲁伊版本至1.1.10
4.Loading class `com.mysql.jdbc.Driver’. This is deprecated
jdbc.properties配置 .com.mysql.jdbc.Driver 改为 com.mysql.cj.jdbc.Driver
5.ssl问题
useSSL=false