当前位置:网站首页>连接数据库时出现WARN: Establishing SSL connection without server‘s identity verification is not recommended.
连接数据库时出现WARN: Establishing SSL connection without server‘s identity verification is not recommended.
2022-08-11 05:29:00 【zhangkai__】
这个错误是-->不建议在没有服务器身份验证的情况下建立SSL连接。 根据MySQL 5.5.45 +,5.6.26 +和5.7.6+的要求,如果未设置显式选项,则默认情况下必须建立SSL连接。默认为建立链接true,我们只需要让他不建立,设置为false 即可。
所以解决办法就是在url的最后添加“&useSSL=false”
// 3、数据源配置
DataSourceConfig dsc = new DataSourceConfig();
dsc.setUrl("jdbc:mysql://localhost:3306/glkt_vod?useSSL=false");
dsc.setDriverName("com.mysql.jdbc.Driver");
dsc.setUsername("root");
dsc.setPassword("123456");
dsc.setDbType(DbType.MYSQL);
mpg.setDataSource(dsc);
记得在包和条件语句连接处加上“?”
边栏推荐
- Day 76
- 品优购项目实战笔记
- SearchGuard证书配置
- Event Preview | On April 23, a number of wonderful sharing sessions of OpenMLDB will come, which will live up to the good time of the weekend
- 自己动手写RISC-V的C编译器-02语法描述方法和递归下降解析
- Day 83
- 基于微信小程序云开发实现的电商项目,可以自行定制开发
- USB in NRZI to encode the data
- The whole process of Tinker access --- Compilation
- 论文解读:GAN与检测网络多任务/SOD-MTGAN: Small Object Detection via Multi-Task Generative Adversarial Network
猜你喜欢

JS事件循环机制

将一个excel文件中多个sheet页“拆分“成多个“独立“excel文件

Day 83
![[Meetup]OpenMLDBxDolphinScheduler 链接特征工程与调度环节,打造端到端MLOps工作流](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[Meetup]OpenMLDBxDolphinScheduler 链接特征工程与调度环节,打造端到端MLOps工作流

Interpretation of the paper: GAN and detection network multi-task/SOD-MTGAN: Small Object Detection via Multi-Task Generative Adversarial Network

The official website of OpenMLDB is upgraded, and the mysterious contributor map will take you to advance quickly

Wonderful linkage | OpenMLDB Pulsar Connector principle and practical operation

自己动手写RISC-V的C编译器-01实现加减法

Node stepping on the pit 80 port is occupied

Use the adb command to manage applications
随机推荐
C language implementation guess Numbers (with source code, can be directly run)
OpenMLDB v0.5.0 released | Performance, cost, flexibility reach new heights
深度学习Matlab工具箱代码注释
OpenMLDB + Jupyter Notebook: Quickly Build Machine Learning Applications
Day 75
USB 枚举过程中8 字节标准请求解析
heap2 (tcache attack,house of orange)
OpenMLDB v0.5.0 发布 | 性能、成本、灵活性再攀高峰
智能风控中台设计与落地
【无标题】
微信小程序_开发工具的安装
js学习进阶BOM部分(pink老师笔记)
【Meetup预告】OpenMLDB+OneFlow:链接特征工程到模型训练,加速机器学习模型开发
Day 72
Scene-driven feature calculation method OpenMLDB, efficient implementation of "calculate first use"
Vscode远程连接服务器终端zsh+Oh-my-zsh + Powerlevel10 + Autosuggestions + Autojump + Syntax-highlighting
Day 87
JVM调优整理
哥德巴赫猜想与整数环
活动预告 | 4月23日,多场OpenMLDB精彩分享来袭,不负周末好时光