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

相关推荐
Mh17 分钟前
AI 的模型能力越来越强,为什么我的编码能力越来越弱?
前端·javascript·后端
新*21 分钟前
Elasticsearch 索引别名入门:创建、路由、原子切换与几个常见误解
运维·后端·elasticsearch·索引别名
挖掘狂人24 分钟前
用户连点两次「确认支付」,你的后端凭什么只扣一次钱?
java·后端·面试
卷无止境1 小时前
AI 加速开发之后,如何应对尚未发现的代码安全威胁
后端·python
Rain的Java大神之路1 小时前
面试官问"MySQL 大表 COUNT(*) 怎么优化",90% 的人第一步就答错了
java·后端·面试
nice_lcj5201 小时前
MySQL 慢查询与 EXPLAIN:怎么定位、怎么优化
java·数据库·后端·mysql
回家路上绕了弯1 小时前
AI中判断的残值
后端
Java旅途1 小时前
高校实习管理系统|把岗位、指导与考核连成一条协同流程
后端
逃逸线LOF2 小时前
SpringCloud Stream
后端·spring·spring cloud