Java 11 + Fix SSL warning for DB connection

This commit is contained in:
Marc Baloup 2020-12-27 01:35:49 +01:00
parent ac78be7efc
commit 96753f4a30

View File

@ -23,6 +23,7 @@ public class DBConnection {
url = "jdbc:mysql://" + host + ":" + port + "/" + dbname url = "jdbc:mysql://" + host + ":" + port + "/" + dbname
+ "?autoReconnect=true" + "?autoReconnect=true"
+ "&useUnicode=true" + "&useUnicode=true"
+ "&useSSL=false"
+ "&characterEncoding=utf8" + "&characterEncoding=utf8"
+ "&characterSetResults=utf8" + "&characterSetResults=utf8"
+ "&character_set_server=utf8mb4" + "&character_set_server=utf8mb4"