当前位置:网站首页>连接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**,再运行程序就没有警告了!!!
边栏推荐
- Apache DolphinScheduler新一代分布式工作流任务调度平台实战-上
- Detailed description of iperf3 parameter options
- 自动化测试selenium(一)
- 怎么在本地电脑上运行dist文件
- sort函数使用cmp出错Line 22: Char 38: error: reference to non-static member function must be called
- 2022 Hangzhou Electric Multi-School 2nd Game
- 69. Sqrt(x)x 的平方根
- Kotlin 值类 - value class
- Unreal Engine Graphic Notes: could not be compiled. Try rebuilding from source manually. Problem solving
- [Fun BLDC series with zero basics] Taking GD32F30x as an example, the timer related functions are explained in detail
猜你喜欢
![[Yugong Series] July 2022 Go Teaching Course 021-Slicing Operation of Go Containers](/img/ff/f3de4952d64afe36c515a2220bfe9d.png)
[Yugong Series] July 2022 Go Teaching Course 021-Slicing Operation of Go Containers

02-课程发布

转行软件测试,报培训班3个月出来就是高薪工作,靠谱吗?

2022 Hangzhou Electric Multi-School 2nd Game

怎么在本地电脑上运行dist文件

日志导致线程Block的这些坑,你不得不防

Using IN in MySQL will not go through index analysis and solutions

STM8L_库函数-模板搭建

快解析结合任我行crm

如何避免CMDB沦为数据孤岛?
随机推荐
虚幻引擎图文笔记:could not be compiled. Try rebuilding from source manually.问题的解决
C# 之 $ – 字符串内插
Integral Special Notes-Three Formulas for Curve Area Integral
积分简明笔记-第一类曲线积分的类型
激活数据潜力 亚马逊云科技重塑云上存储“全家桶”
如何避免CMDB沦为数据孤岛?
九九乘法表
硬件工程师
Reflection tricks can boost your performance by N times
Apache DolphinScheduler新一代分布式工作流任务调度平台实战-上
利用R语言读取csv文件入一个数据框,然后查看各列的属性。
Circuit analysis: constant current source circuit composed of op amp and triode
嘉为鲸翼·多云管理平台荣获信通院可信云技术服务最佳实践
leetcode 剑指 Offer 47. 礼物的最大价值
How to use Jmeter to carry out high concurrency in scenarios such as panic buying and seckill?
Two solutions for Excel xlsx file not supported
获取显示器数据
leetcode 剑指 Offer 22. 链表中倒数第k个节点
Devops和低代码的故事:螳螂捕蝉,黄雀在后
Apache DolphinScheduler's new generation of distributed workflow task scheduling platform in practice - Part 1