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

相关推荐
立心者010 分钟前
SpringBoot中使用TOTP实现MFA(多因素认证)
java·spring boot·后端
AskHarries1 小时前
SEO 页面怎么生成
后端
爱吃牛肉的大老虎1 小时前
Rust对象之结构体,枚举,特性
开发语言·后端·rust
石榴1 小时前
NestJS 的请求到底经过了什么:装饰器、守卫、拦截器、管道与中间件如何配合
后端
Gopher_HBo1 小时前
moby-client客户端
后端
杨运交2 小时前
[055][调度模块]Spring动态任务调度框架的设计与实现
java·后端·spring
卷福同学3 小时前
AI编程出海第二步:验证关键词能否做站
前端·人工智能·后端
Csvn4 小时前
📊 SQL 入门 Day 11:CASE 表达式:SQL 里的 if-else 魔法
后端·sql
QQ_21696290964 小时前
Spring Boot 养老院管理系统:从入住、护理到费用结算的全流程实现(源码可领)
java·spring boot·后端
万少6 小时前
DeepSeek-V4-Flash 正式版上线了,但这 3 个坑我帮你提前踩了
前端·javascript·后端