博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Establishing SSL connection without server's identity verification is not recommended
阅读量:4166 次
发布时间:2019-05-26

本文共 779 字,大约阅读时间需要 2 分钟。

在JDBC连接Mysql数据库的过程中出现了如下的警告信息:

 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.

是Mysql数据库的SSL连接问题,提示警告不建议使用没有带服务器身份验证的SSL连接,是在MYSQL5.5.45+, 5.6.26+ and 5.7.6+版本中才有的这个问题。解决办法在警告中已经说明了:

1.在数据库连接的url中添加useSSL=false;2.url中添加useSSL=true,并且提供服务器的验证证书。如果只是做一个测试的话,没必要搞证书那么麻烦啦,在连接后添加一个useSSL=false即可,例如:

jdbc:mysql://localhost:3306/test?useSSL=false

 

转载地址:http://fzgxi.baihongyu.com/

你可能感兴趣的文章
逆波兰表达式
查看>>
K-means中K值的选取
查看>>
kmeans优化算法
查看>>
牛客网 构造队列
查看>>
牛客网 跳石板
查看>>
牛客网 暗黑的字符串
查看>>
牛客网 最大的奇约数
查看>>
python大坑:AttributeError: 'module' object has no attribute 'Workbook'
查看>>
python 协程
查看>>
在写计算器时学到的
查看>>
小Q的歌单
查看>>
牛客网 计算机网络 选择题及知识点 (1)
查看>>
0-1背包问题
查看>>
LRU Cache
查看>>
牛客网 旋转数组的最小值
查看>>
整数的二进制表达式中有多少个1
查看>>
java学习笔记(一)
查看>>
数值的整数次方
查看>>
调整数组顺序使奇数位于偶数前面
查看>>
在其他数都出现偶数次的数组中找到出现次数为奇数次的数
查看>>