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

相关推荐
lUie INGA19 小时前
在2023idea中如何创建SpringBoot
java·spring boot·后端
geBR OTTE19 小时前
SpringBoot中整合ONLYOFFICE在线编辑
java·spring boot·后端
NineData19 小时前
NineData 新增支持 GaussDB 到 StarRocks 实时数据复制能力
后端
sghuter20 小时前
数字资源分发架构解密
后端·架构·dubbo
小码哥_常20 小时前
Spring Boot启动慢?这5个优化点带你起飞
后端
NineData20 小时前
NineData将亮相DACon 2026上海站!解锁AGI时代数据“智理”新范式
数据库·后端·架构
不会写DN21 小时前
Golang中的map的key可以是哪些类型?可以嵌套map吗?
后端·golang·go
eLIN TECE1 天前
springboot和springframework版本依赖关系
java·spring boot·后端
老神在在0011 天前
Spring Bean 的六种作用域详解
java·后端·spring