当前位置: 移动技术网 > IT编程>数据库>Mysql > MYSQL:WARN: Establishing SSL connection without server's identity verification is not recommended.

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

2018年10月15日  | 移动技术网IT编程  | 我要评论

 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 5.5.45 +,5.6.26 +和5.7.6+要求如果未设置显式选项,则必须默认建立ssl连接。 为了符合不使用ssl的现有应用程序,verifyservercertificate属性设置为“false”。 您需要通过设置usessl = false显式禁用ssl,或者设置usessl = true并为服务器证书验证提供信任库。

数据库链接时遇到的问题如上,警告中已经明确告诉了解决方法,所以我们只要在我们链接数据库的url拼接上usessl=false或者设置usessl = true并为服务器证书验证提供信任库。所以当我么使用新版本的时候会有很多问题,如果想要避免这种麻烦可以使用低于当前最新版本的稳定版本使用。

 

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网