Oopsy
This commit is contained in:
1 parent
a5f6851162
commit
4036a7ddea
1 file changed
+2
-2
@@ -26,12 +26,12 @@ public class MysqlConnector {
|
|||||||
*/
|
*/
|
||||||
public MysqlConnector connect() throws SQLException {
|
public MysqlConnector connect() throws SQLException {
|
||||||
try {
|
try {
|
||||||
Class.forName("com.mysql.jdbc.Driver");
|
Class.forName("com.mysql.cj.jdbc.Driver");
|
||||||
c = DriverManager.getConnection("jdbc:mysql://" + dbHost + ":3306/" + dbName, dbUser, dbPass);
|
c = DriverManager.getConnection("jdbc:mysql://" + dbHost + ":3306/" + dbName, dbUser, dbPass);
|
||||||
} catch (ClassNotFoundException e) {
|
} catch (ClassNotFoundException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user