mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
using newer MySQL driver
- Newer driver doesn't need manual loading - Fixes #1783
This commit is contained in:
parent
8f5e2eb439
commit
515405aa9e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user