当前位置:网站首页>连接mysql报错WARN: Establishing SSL connection without server‘s identity verification is not recommended
连接mysql报错WARN: Establishing SSL connection without server‘s identity verification is not recommended
2022-07-30 09:03:00 【我高考零分!】
一、详细报错信息
Fri Jul 29 09:04:03 GMT+08:00 2022 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.
译文:
周五7月29日09:04:03 GMT+08:00 2022 WARN:不建议在没有服务器身份验证的情况下建立SSL连接。
根据MySQL 5.5.45+、5.6.26+和5.7.6+的要求,如果没有设置显式选项,默认必须建立SSL连接。
为了符合不使用SSL的现有应用程序,verifyServerCertificate属性被设置为'false'。
您需要通过设置useSSL=false显式禁用SSL,或者设置useSSL=true并为服务器证书验证提供信任存储区。
二、解决方式
在连接数据库的url加上**&useSSL=false**,再运行程序就没有警告了!!!
边栏推荐
- Liunx服务器安装SVN(安装包版)
- Google Cloud Spanner的实践经验
- Unable to locate the program input point ucrtbase.abort on the dynamic link library api-ms-win-crt-runtime-|1-1-0.dll
- 02-课程发布
- MySQL【运算符】
- 内卷下的智能投影行业,未来何去何从?
- 如何避免CMDB沦为数据孤岛?
- ant-design form form verification upload component (with personal packaged upload component)
- Kotlin 值类 - value class
- ACL 2022 | Introduce angular margin to construct comparative learning objectives and enhance text semantic discrimination ability
猜你喜欢
Circuit analysis: constant current source circuit composed of op amp and triode
开关电源波纹的产生、测量及抑制,一篇全搞定!
九九乘法表
[Fun BLDC series with zero basics] Taking GD32F30x as an example, the timer related functions are explained in detail
leetcode 剑指 Offer 48. 最长不含重复字符的子字符串
日志导致线程Block的这些坑,你不得不防
快解析结合象过河erp
Jenkins 如何玩转接口自动化测试?
An article to understand service governance in distributed development
MySQL [operator]
随机推荐
Access to display the data
STM8L_库函数-模板搭建
leetcode 剑指 Offer 25. 合并两个排序的链表
69. Sqrt(x)x 的平方根
统一异常处理导致ResponseBodyAdvice失效
Scala
leetcode 剑指 Offer 57. 和为s的两个数字
详解JVM垃圾回收
How to use Jmeter to carry out high concurrency in scenarios such as panic buying and seckill?
342 · 山谷序列
图像分析:投影曲线的波峰查找
XP电源维修fleXPower电源X7-2J2J2P-120018系列详解
HashSet and LinkedHashSet
公共Jar包的版本管理
It is said that FPGA is high-end, what can it do?
One article to understand twenty kinds of switching power supply topologies
七大排序之直接选择排序
conda 导出/导出配置好的虚拟环境
企业数字化建设,自研还是采购?
编程界的“躲猫猫”比赛 | 每日趣闻