This commit is contained in:
anthorob committed 2021-11-07 09:09:36 -05:00
1 parent a5f6851162
commit 4036a7ddea
1 file changed
+1 -1
@@ -26,7 +26,7 @@ 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();