登录
首页 >  数据库 >  MySQL

Java连接Mysql数据库警告:Establishing SSL connection witho 解决

来源:SegmentFault

时间:2023-01-14 17:52:57 249浏览 收藏

大家好,今天本人给大家带来文章《Java连接Mysql数据库警告:Establishing SSL connection witho 解决》,文中内容主要涉及到MySQL、Java、数据库,如果你对数据库方面的知识点感兴趣,那就请各位朋友继续看下去吧~希望能真正帮到你们,谢谢!

Java连接Mysql数据库警告:Establishing SSL connection witho 解决

Thu Dec 20 12:50:09 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.

解决办法
在连接数据库的url中添加useSSL=false 记得多个参数之间要用&连接

本篇关于《Java连接Mysql数据库警告:Establishing SSL connection witho 解决》的介绍就到此结束啦,但是学无止境,想要了解学习更多关于数据库的相关知识,请关注golang学习网公众号!

声明:本文转载于:SegmentFault 如有侵犯,请联系study_golang@163.com删除
相关阅读
更多>
最新阅读
更多>
课程推荐
更多>
评论列表