mysql报错Establishing SSL connection without server's identity verification is not recommended

时间:2022-10-18 05:55:00

使用mysql数据库时报错:Establishing SSL connection without server's identity verification is not recommended

mysql报错Establishing SSL connection without server's identity verification is not recommended

解决方法:将url中增加useSSL=false

原代码:String url="jdbc:mysql://localhost:3308/sqltestdb";

改后:String url="jdbc:mysql://localhost:3308/sqltestdb?useSSL=false";

相关文章