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...

相关推荐
会编程的土豆14 小时前
Go interface 底层的 itab 到底是什么
开发语言·后端·golang
candyTong14 小时前
Claude Code 每次调用 API 时,上下文是怎么"拼"出来的?
javascript·后端·架构
java_cj14 小时前
MySQL 执行原理深度剖析:查询成本计算与优化器内幕
数据库·后端·mysql
java_cj15 小时前
数据库范式化设计与性能优化全攻略
数据库·后端·性能优化·架构·开源
雪隐15 小时前
AI股票小助手01-量化交易基础概念
人工智能·后端·python
alwaysrun15 小时前
Rust之代数数据类型Enum
后端·rust·编程语言
前端市界15 小时前
拒绝纸上谈兵!Docker 一键全线打通 DevOps 金三角实战
后端
罗工_有bug15 小时前
label-studio 踩坑:一个环境变量引发的 bool 转换错误
后端
搬石头的马农15 小时前
Claude Code SpringBoot开发:从0到1搭建企业级项目的6个核心Skill
java·人工智能·spring boot·后端·ai编程
西安邮电大学15 小时前
Redis为什么快?
java·redis·后端·其他·面试