Skip to content

Commit

Permalink
Fix #960: Read MySQL credentials from option files
Browse files Browse the repository at this point in the history
  • Loading branch information
DoodleBobBuffPants committed Nov 6, 2020
1 parent f3a6544 commit 90f7323
Showing 1 changed file with 16 additions and 0 deletions.
Expand Up @@ -19,6 +19,8 @@
import org.flywaydb.core.api.configuration.Configuration;
import org.flywaydb.core.internal.database.base.Database;
import org.flywaydb.core.internal.database.base.DatabaseType;


import org.flywaydb.core.internal.jdbc.JdbcConnectionFactory;
import org.flywaydb.core.internal.jdbc.StatementInterceptor;
import org.flywaydb.core.internal.parser.Parser;
Expand All @@ -33,6 +35,10 @@ public class MySQLDatabaseType extends DatabaseType {
private static final String MYSQL_LEGACY_JDBC_DRIVER = "com.mysql.jdbc.Driver";
private static final String MARIADB_JDBC_DRIVER = "org.mariadb.jdbc.Driver";





@Override
public String getName() {
return "MySQL";
Expand Down Expand Up @@ -120,4 +126,14 @@ public boolean detectPasswordRequiredByUrl(String url) {

return super.detectPasswordRequiredByUrl(url);
}










}

0 comments on commit 90f7323

Please sign in to comment.