From 515405aa9edd18167d4342c04995ab833c088bbf Mon Sep 17 00:00:00 2001 From: BrainStone Date: Sat, 10 Mar 2018 21:34:11 +0100 Subject: [PATCH] using newer MySQL driver - Newer driver doesn't need manual loading - Fixes #1783 --- .../java/com/intellectualcrafters/plot/database/MySQL.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/database/MySQL.java b/Core/src/main/java/com/intellectualcrafters/plot/database/MySQL.java index 153de8030..d9de43a99 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/database/MySQL.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/database/MySQL.java @@ -42,8 +42,7 @@ public class MySQL extends Database { } @Override - public Connection forceConnection() throws SQLException, ClassNotFoundException { - Class.forName("com.mysql.jdbc.Driver"); + public Connection forceConnection() throws SQLException { this.connection = DriverManager.getConnection("jdbc:mysql://" + this.hostname + ':' + this.port + '/' + this.database + "?" + StringMan.join(Storage.MySQL.PROPERTIES, "&"), this.user, this.password); return this.connection;