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

报错如下:

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.

idea连接mysql报错: No appropriate protocol (protocol is disabled or cipher suites are inappropriate(已解决)_第1张图片

解决方案:

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

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

idea连接mysql报错: No appropriate protocol (protocol is disabled or cipher suites are inappropriate(已解决)_第2张图片
点击:Test Connection连接测试一下:
idea连接mysql报错: No appropriate protocol (protocol is disabled or cipher suites are inappropriate(已解决)_第3张图片
连接成功!

你可能感兴趣的:(springboot,IDEA,mysql,idea,数据库)