在后台开发过程中有时会使用到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"就行了。
本文介绍了一种在连接MySQL时出现的SSL警告,并提供了一个简单的解决方案,即通过在连接配置中添加参数来禁用SSL,从而避免了由于未验证服务器证书而产生的警告。
736

被折叠的 条评论
为什么被折叠?



