开发者社区 问答 正文

MYSQL实例连接问题

你好,我用JAVA连接云数据库mysql一直报警告信息:
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

我是使用springboot连接的数据库,连接如下,有配置useSLL=false属性
jdbc:mysql://rm-xxx.mysql.rds.aliyuncs.com/XXXXX?useUnicode:true&characterEncoding:UTF-8&allowMultiQueries:true&useSSL:false


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

展开
收起
292279440954076858 2018-12-26 12:02:19 739 分享 版权
1 条回答
写回答
取消 提交回答
  • 深耕云原生技术布道,熟悉DevOps、敏捷开发、容器技术、微服务架构等,擅长架构设计及企业数字化转型,在跨境电商场景上有多年的工作经历,在设计高并发、高性能、高可用中架构有较深的经验积累。精益和工匠精神不断提高对于技术领域的研究和探索。
    1.在数据库连接的url中添加useSSL=false;
    2.url中添加useSSL=true,并且提供服务器的验证证书。
    2018-12-26 12:32:11
    赞同 展开评论