当前位置:网站首页>连接数据库时出现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);
记得在包和条件语句连接处加上“?”
边栏推荐
- JS case exercise (classic case of teacher pink)
- The third phase of the contributor task is wonderful
- OpenMLDB: Consistent production-level feature computing platform online and offline
- Minutes of OpenMLDB Meetup No.2
- three.js基础学习
- 黑马大事件项目
- [Meetup]OpenMLDBxDolphinScheduler 链接特征工程与调度环节,打造端到端MLOps工作流
- Invalid revision: 3.18.1-g262b901-dirty
- The Summer of Open Source 2022 is coming | Welcome to sign up for the OpenMLDB community project~
- Node stepping on the pit 80 port is occupied
猜你喜欢

Day 86

Jetpack使用异常问题集锦

The whole process of Tinker access --- configuration

Day 80

星盟-pwn-babyfmt

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

OpenMLDB: Consistent production-level feature computing platform online and offline

Day 78

Wonderful linkage | OpenMLDB Pulsar Connector principle and practical operation

Building a data ecology for feature engineering - Embrace the open source ecology, OpenMLDB fully opens up the MLOps ecological tool chain
随机推荐
Day 69
Fourth Paradigm OpenMLDB optimization innovation paper was accepted by VLDB, the top international database association
Getting Started with JNI
Tinker接入全流程---编译篇
【无标题】
heap2 (tcache attack,house of orange)
mount命令--挂载出现只读,解决方案
OpenMLDB:线上线下一致的生产级特征计算平台
C语言实现简易扫雷(附带源码)
何凯明新作ViTDET:目标检测领域,颠覆分层backbone理念
自己动手写RISC-V的C编译器-02语法描述方法和递归下降解析
黑马大事件项目
Interpretation of the paper: GAN and detection network multi-task/SOD-MTGAN: Small Object Detection via Multi-Task Generative Adversarial Network
Use the adb command to manage applications
promise.all 学习(多个promise对象回调)
Day 80
Use c language to implement tic-tac-toe chess (with source code, you can run it directly)
父子节点数据格式不一致的树状列表实现
微信小程序_开发工具的安装
Simple mine sweeping in C language (with source code)