idea连接mysql报错: No appropriate protocol (protocol is disabled or cipher suites are inappropriate(已解决)

idea连接mysql报错: No appropriate protocol (protocol is disabled or cipher suites are inappropriate(已解决)报错如下 javax net ssl SSLHandshake Noappropriat protocolisdi Thefollowing SSLv3 TLSv1 TLSv1 1 RC4 DES MD5withRSA DHkeySize lt 1024 ECkeySize

报错如下:

javax.net.ssl.SSLHandshakeException: 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, include jdk.disabled.namedCurves. 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. 

在这里插入图片描述

解决方案:

在URL中添加在数据库后面添加?createDatabaseIfNotExist=true&useSSL=false

如:jdbc:mysql://192.168.2.2:3306/test?createDatabaseIfNotExist=true&useSSL=false

在这里插入图片描述
点击:Test Connection连接测试一下:
在这里插入图片描述
连接成功!


版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/230684.html原文链接:https://javaforall.net

(0)
上一篇 2026年2月8日 下午7:01
下一篇 2026年2月8日 下午7:22


相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号