分享

WARN: Establishing SSL connection without server

 神志屋 2017-04-22
菜鸟开始自学java,很多东西不会,瞎搞!

遇见一个问题解决一个!

Wed Jun 29 17:59:32 CST 2016 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.

一开始看到是Warn,所以可以不用理会,但是作为入门都不够格的我,看着别扭啊!

原因是MySQL在高版本需要指明是否进行SSL连接。
我的MySQL是:5.7.11 算是最新版本的了。


解决方案如下:
在url后面加上:     ?characterEncoding=utf8&useSSL=true

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多