mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 05:35:44 +01:00
MySQLDatabaseConnector: removed obsolete Class.forName()
This commit is contained in:
parent
8fc6267082
commit
7aec45dc97
@ -21,11 +21,6 @@ public class MySQLDatabaseConnector implements DatabaseConnector {
|
|||||||
*/
|
*/
|
||||||
MySQLDatabaseConnector(DatabaseConnectionSettingsImpl dbSettings) {
|
MySQLDatabaseConnector(DatabaseConnectionSettingsImpl dbSettings) {
|
||||||
this.dbSettings = dbSettings;
|
this.dbSettings = dbSettings;
|
||||||
try {
|
|
||||||
Class.forName("com.mysql.jdbc.Driver").getDeclaredConstructor().newInstance();
|
|
||||||
} catch (Exception e) {
|
|
||||||
Bukkit.getLogger().severe("Could not instantiate JDBC driver! " + e.getMessage());
|
|
||||||
}
|
|
||||||
connectionUrl = "jdbc:mysql://" + dbSettings.getHost() + ":" + dbSettings.getPort() + "/" + dbSettings.getDatabaseName()
|
connectionUrl = "jdbc:mysql://" + dbSettings.getHost() + ":" + dbSettings.getPort() + "/" + dbSettings.getDatabaseName()
|
||||||
+ "?autoReconnect=true&useSSL=false&allowMultiQueries=true";
|
+ "?autoReconnect=true&useSSL=false&allowMultiQueries=true";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user