mysql-problem
1、SSL 问题
报错信息:
Thu Feb 02 17:06:57 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.
解决方法:在 url 中添加 &useSSL=false
2、驱动版本问题
报错信息:
Unable to load authentication plugin 'caching_sha2_password'.
问题原因:驱动版本为 5.x.x
解决方法:升级驱动版本至 8.x.x
3、驱动类问题
报错信息:
This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
解决方案:
驱动类改为 com.mysql.cj.jdbc.Driver
4、密钥问题
报错信息:
Public Key Retrieval is not allowed