IDEA连接数据库报错(javax.net.ssl.SSLHandshakeException: No appropriate protocol )

时间:2024-10-31 09:04:15

报错信息:javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

解决办法:jdbc连接的时候在数据库后面添加:?createDatabaseIfNotExist=true&useSSL=false。例如:jdbc:mysql://192.168.2.2:3306/db?createDatabaseIfNotExist=true&useSSL=false