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.
今天玩kafka监控的时候,以前的项目突然跑不起来了,折腾了几个小时排查清楚。
原因是mysql的SSL默认开启的,而且mysql8.0.12版本的驱动也和mysql5.2.23左右版本(我以前用的版本)的不一样。画
我的排查步骤基本如下:
1.检查项目引用的mysql版本及本地maven库相同版本是否存在;
2.检查数据库驱动,我现在8.