当前位置:网站首页>连接数据库时出现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 78
heap2 (tcache attack,house of orange)
【无标题】
USB URB
OpenMLDB: Consistent production-level feature computing platform online and offline
构建面向特征工程的数据生态 ——拥抱开源生态,OpenMLDB全面打通MLOps生态工具链
8-byte standard request parsing during USB enumeration
实时特征计算平台架构方法论和基于 OpenMLDB 的实践
Real-time Feature Computing Platform Architecture Methodology and Practice Based on OpenMLDB
mk file introduction
随机推荐
OpenMLDB: Consistent production-level feature computing platform online and offline
Jetpack use exception problem collection
Interpretation of the paper: GAN and detection network multi-task/SOD-MTGAN: Small Object Detection via Multi-Task Generative Adversarial Network
ARM 汇编指令 ADR 与 LDR 使用
promise.all 学习(多个promise对象回调)
SearchGuard证书配置
开源机器学习数据库OpenMLDB贡献者计划全面启动
mk文件介绍
2021-09-11 C语言 变量与内存分配
The third phase of the contributor task is wonderful
函数使用记录
[Meetup]OpenMLDBxDolphinScheduler 链接特征工程与调度环节,打造端到端MLOps工作流
Tinker接入全流程---配置篇
Regular expression replacement for batch quick modification code
栈stack
自己动手写RISC-V的C编译器-01实现加减法
【无标题】
Day 68
vim 编辑器使用学习
Day 87