Specified driver className

This might solve issues with wrong MySQL driver being used
This commit is contained in:
Risto Lahtela 2020-06-07 12:42:11 +03:00
parent 396b51873c
commit 9289d78345

View File

@ -99,6 +99,7 @@ public class MySQLDB extends SQLDB {
launchOptions = "?rewriteBatchedStatements=true&useSSL=false";
logger.error(locale.getString(PluginLang.DB_MYSQL_LAUNCH_OPTIONS_FAIL, launchOptions));
}
hikariConfig.setDriverClassName("com.mysql.cj.jdbc.Driver");
hikariConfig.setJdbcUrl("jdbc:mysql://" + host + ":" + port + "/" + database + launchOptions);
String username = config.get(DatabaseSettings.MYSQL_USER);