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

相关推荐
掘金者阿豪2 小时前
2026年,AI编程工具到底好不好用?这份调研想听听你的真实声音
后端
名字还没想好☜2 小时前
Go 用 json.Decoder 流式解析大 JSON:边读边处理不爆内存
开发语言·后端·golang·go·json
谢亮_vipxieliang3 小时前
ValidX时间段验证详解:ISO 8601标准与简化格式
java·spring boot·后端·spring·spring cloud·hibernate
不一样的少年_4 小时前
WebP 压缩到底在干嘛?小白也能看懂的原理拆解
前端·后端·图片资源
不一样的少年_4 小时前
PNG/JPG 如何变成 WebP?真相不是改后缀!
前端·后端·图片资源
Zane19944 小时前
String::compareTo凭什么能当参数传?方法引用的四种形式讲透
java·后端
JavaGuide4 小时前
阿里 Qoder 又开源了一个专门给 Claude Code、Codex 做“体检”的项目
前端·后端
不一样的少年_4 小时前
JPEG 压缩到底在干嘛?小白也能看懂的 8 步拆解
前端·后端·图片资源
the局外人4 小时前
学习 FastAPI 的 Day 4:完成用户系统与接口联调(完结)
后端·python·fastapi
三小河4 小时前
RAG、LLM Wiki、本体(Ontology)到底是个啥?
前端·人工智能·后端