Apparently no need for Class.forName(com.mysql.jdbc.Driver);
This commit is contained in:
@@ -19,7 +19,7 @@ public class DBConnection {
|
||||
|
||||
public DBConnection(String host, int port, String dbname, String l, String p)
|
||||
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
|
||||
+ "?autoReconnect=true"
|
||||
+ "&useUnicode=true"
|
||||
|
Reference in New Issue
Block a user