Skip to content

Commit e0e42a1

Browse files
authored
Merge pull request #1 from dmsLakmal/database-bug-fix
Update DBConnection.java
2 parents 07b7ba6 + db93885 commit e0e42a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

foodcorner/src/model/DBConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static java.sql.Connection getConnection() {
4242
java.sql.Connection connection = null;
4343

4444
try {
45-
Class.forName("com.mysql.jdbc.Driver");
45+
Class.forName("com.mysql.cj.jdbc.Driver");
4646
connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/studentdb", "root", "");
4747
}
4848

0 commit comments

Comments
 (0)