WARN: Establishing SSL connection without server’s identity verification is not recommended.

When using mysql-java-5.1.41.jar for database connection, the following warning appears:

Establishing SSL connection without server’s identity verification is not recommended.

The reason is that MySQL needs to explicitly specify whether to make SSL connection in higher versions.

Just add SSL = true to the connection MySQL configuration file

connectionURL=” jdbc:mysql :// localhost:3306/xxxxx?useSSL=true “

Similar Posts: