MYSQL:WARN: Establishing SSL connection without server's identity verification is not recommended.
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并为服务器证书验证提供信任库。所以当我么使用新版本的时候会有很多问题,如果想要避免这种麻烦可以使用低于当前最新版本的稳定版本使用。
上一篇: SpringBoot中自定义注解实现参数非空校验的示例
下一篇: JavaScript对象,了解一下
推荐阅读
-
MYSQL:WARN: Establishing SSL connection without server's identity verification is not recommended.
-
jdbc连mysql出现SSL警告Establishing SSL connection without server's identity verification is not recommend
-
Mon Nov 18 01:40:52 CST 2019 WARN: Establishing SSL connection without server's identity verificatio
-
使用Mybatis连接到Mysql报错,WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.2
-
MYSQL:WARN: Establishing SSL connection without server's identity verification is not recommended.