Apparently no need for Class.forName(com.mysql.jdbc.Driver);
This commit is contained in:
parent
5eaaf8faa5
commit
f7e4e42a47
@ -19,7 +19,7 @@ public class DBConnection {
|
|||||||
|
|
||||||
public DBConnection(String host, int port, String dbname, String l, String p)
|
public DBConnection(String host, int port, String dbname, String l, String p)
|
||||||
throws ClassNotFoundException, SQLException {
|
throws ClassNotFoundException, SQLException {
|
||||||
Class.forName("com.mysql.jdbc.Driver");
|
//Class.forName("com.mysql.jdbc.Driver"); // apparently this is deprecated now
|
||||||
url = "jdbc:mysql://" + host + ":" + port + "/" + dbname
|
url = "jdbc:mysql://" + host + ":" + port + "/" + dbname
|
||||||
+ "?autoReconnect=true"
|
+ "?autoReconnect=true"
|
||||||
+ "&useUnicode=true"
|
+ "&useUnicode=true"
|
||||||
|
Loading…
Reference in New Issue
Block a user