Load mysql driver on startup

Fixes #784
This commit is contained in:
Brokkonaut
2020-02-13 04:17:01 +01:00
parent fc1cd5ef2c
commit e1064dd0b1

View File

@@ -73,6 +73,7 @@ public class LogBlock extends JavaPlugin {
}
try {
getLogger().info("Connecting to " + user + "@" + url + "...");
Class.forName("com.mysql.jdbc.Driver");
pool = new MySQLConnectionPool(url, user, password, mysqlUseSSL, mysqlRequireSSL);
final Connection conn = getConnection(true);
if (conn == null) {