Skip to content

Commit

Permalink
Fix Deprecated MySQL Class Name (#1760)
Browse files Browse the repository at this point in the history
* Fix #1655

* MySQL driver discovery in MySQLContainer instead of JdbcDatabaseContainer
  • Loading branch information
turackangal authored and rnorth committed Aug 25, 2019
1 parent 8894dae commit 43e1f6a
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -56,7 +56,12 @@ protected void configure() {

@Override
public String getDriverClassName() {
return "com.mysql.jdbc.Driver";
try {
Class.forName("com.mysql.cj.jdbc.Driver");
return "com.mysql.cj.jdbc.Driver";
} catch (ClassNotFoundException e) {
return "com.mysql.jdbc.Driver";
}
}

@Override
Expand Down

0 comments on commit 43e1f6a

Please sign in to comment.