This commit is contained in:
Jesse Boyd 2018-03-12 17:27:00 +11:00
commit c208c530ff
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -42,8 +42,7 @@ public class MySQL extends Database {
} }
@Override @Override
public Connection forceConnection() throws SQLException, ClassNotFoundException { public Connection forceConnection() throws SQLException {
Class.forName("com.mysql.jdbc.Driver");
this.connection = this.connection =
DriverManager.getConnection("jdbc:mysql://" + this.hostname + ':' + this.port + '/' + this.database + "?" + StringMan.join(Storage.MySQL.PROPERTIES, "&"), this.user, this.password); DriverManager.getConnection("jdbc:mysql://" + this.hostname + ':' + this.port + '/' + this.database + "?" + StringMan.join(Storage.MySQL.PROPERTIES, "&"), this.user, this.password);
return this.connection; return this.connection;