IDEA连接MySQL数据库错误

说明:使用IDEA连接云服务器中的MySQL数据库时,报下面的这个错误;

vbscript 复制代码
[08S01] Communications link failure

  The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. No appropriate protocol (protocol is disabled or cipher suites are inappropriate)


  The following required algorithms might be disabled: SSLv3, TLSv1, TLSv1.1, RC4, DES, MD5withRSA, DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL. Edit the list of disabled algorithms to include required algorithms. You can try to enable TLSv1 or TLSv1.1 first.  
  
  JDBC driver may have disabled TLS 1.1 and its earlier versions.

错误翻译如下;

解决:

如果你的IDEA中错误下面有这几个提示,选择Enable TLSv1;

IDEA中会自动增加以下配置,直接点"Apply"就可以;

Test,连接成功;

如果没有提示,可手动添加以下配置:

arduino 复制代码
"-Djdk.tls.disabledAlgorithms=SSLv3, TLSv1.1, RC4, DES, MD5withRSA, DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL"

首次发布

hezhongying.blog.csdn.net/article/det...

相关推荐
Rain的Java大神之路1 小时前
钱扣了,消息却没了:RocketMQ 5.x 事务回查状态到底该放哪?
java·后端·rocketmq
Rain的Java大神之路2 小时前
LeetCode 46 全排列:从「及格答案」到让面试官眼前一亮的三种写法
后端·leetcode·面试
打工仔折腾 AI2 小时前
Linux网络:UDP一次sendto对应一次recvfrom的底层机制解析
linux·网络·人工智能·后端·python·性能优化·udp
xieliyu.2 小时前
Nacos 环境隔离与配置中心:改配置不用重启,真香(四)
后端·spring cloud·微服务·云原生·nacos·配置中心·动态刷新
金銀銅鐵2 小时前
带您看懂字节码指令(Web 版):第一帧在浏览器里跑一遍
java·jvm·后端
阿策小和尚2 小时前
4.3GB 依赖树压到 284MB、五进程 500ms 退场:我把 4 万星的 Novu 塞进了 Dopame OS
人工智能·后端·架构
码途行者3 小时前
每天10分钟学Go:第31课 原子操作与互斥锁
开发语言·后端·golang
程序员阿明3 小时前
spring boot 4 + netty搭建JT808车载终端服务
spring boot·后端
软件技术NINI3 小时前
基于 SpringBoot 的共享植物管理系统
java·spring boot·后端