From f7e4e42a473d4301aefae90c5ecce4cc8894f1e3 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Sun, 25 Jul 2021 20:14:30 +0200 Subject: [PATCH] Apparently no need for Class.forName(com.mysql.jdbc.Driver); --- Core/src/main/java/fr/pandacube/lib/core/db/DBConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/fr/pandacube/lib/core/db/DBConnection.java b/Core/src/main/java/fr/pandacube/lib/core/db/DBConnection.java index aa2d637..437419e 100644 --- a/Core/src/main/java/fr/pandacube/lib/core/db/DBConnection.java +++ b/Core/src/main/java/fr/pandacube/lib/core/db/DBConnection.java @@ -19,7 +19,7 @@ public class DBConnection { public DBConnection(String host, int port, String dbname, String l, String p) throws ClassNotFoundException, SQLException { - Class.forName("com.mysql.jdbc.Driver"); + //Class.forName("com.mysql.jdbc.Driver"); // apparently this is deprecated now url = "jdbc:mysql://" + host + ":" + port + "/" + dbname + "?autoReconnect=true" + "&useUnicode=true"