1. 程式人生 > >MySQL WARN: Establishing SSL connection ...... is not recommended.

MySQL WARN: Establishing SSL connection ...... is not recommended.

在後臺開發過程中有時會使用到MySQL,那麼在瀏覽器或者Postman等工具上面進行對資料庫資料進行操作的時候有時候會看到IDE中彈出如下警告:

報錯:Tue Oct 30 16:44:38 CST 2018 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.

這個警告的大概意思是建立SSL連線,但是伺服器沒有身份認證,這種方法不建議使用。

要消除這個警告的方法也很簡單,就是在連線MySQL的配置後面加上"&useSSL=false"就行了。

參考連結:http://www.mamicode.com/info-detail-1262842.html