mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-18 17:51:01 +02:00
Specified driver className
This might solve issues with wrong MySQL driver being used
This commit is contained in:
parent
396b51873c
commit
9289d78345
@ -99,6 +99,7 @@ public class MySQLDB extends SQLDB {
|
|||||||
launchOptions = "?rewriteBatchedStatements=true&useSSL=false";
|
launchOptions = "?rewriteBatchedStatements=true&useSSL=false";
|
||||||
logger.error(locale.getString(PluginLang.DB_MYSQL_LAUNCH_OPTIONS_FAIL, launchOptions));
|
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);
|
hikariConfig.setJdbcUrl("jdbc:mysql://" + host + ":" + port + "/" + database + launchOptions);
|
||||||
|
|
||||||
String username = config.get(DatabaseSettings.MYSQL_USER);
|
String username = config.get(DatabaseSettings.MYSQL_USER);
|
||||||
|
Loading…
Reference in New Issue
Block a user