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
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;