IDEA连接MySQL数据库错误
  xaeiTka4h8LY 11天前 13 0

说明:使用IDEA连接云服务器中的MySQL数据库时,报下面的这个错误;

[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连接MySQL数据库错误

错误翻译如下;

IDEA连接MySQL数据库错误

解决:

如果你的IDEA中错误下面有这几个提示,选择Enable TLSv1;

IDEA连接MySQL数据库错误

IDEA中会自动增加以下配置,直接点“Apply”就可以;

IDEA连接MySQL数据库错误

Test,连接成功;
IDEA连接MySQL数据库错误

如果没有提示,可手动添加以下配置:

IDEA连接MySQL数据库错误

"-Djdk.tls.disabledAlgorithms=SSLv3, TLSv1.1, RC4, DES, MD5withRSA, DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL"
【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 11天前 0

暂无评论

推荐阅读
xaeiTka4h8LY