From 945b24990a92be13d4a3f1595d6164e5eeb071b7 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Fri, 31 Jul 2015 16:26:54 +0200 Subject: [PATCH] fixed cp property --- src/main/java/fr/xephi/authme/datasource/MySQL.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/fr/xephi/authme/datasource/MySQL.java b/src/main/java/fr/xephi/authme/datasource/MySQL.java index e18ef5bc9..135d544fa 100644 --- a/src/main/java/fr/xephi/authme/datasource/MySQL.java +++ b/src/main/java/fr/xephi/authme/datasource/MySQL.java @@ -121,7 +121,7 @@ public class MySQL implements DataSource { config.addDataSourceProperty("prepStmtCacheSize", "250"); config.addDataSourceProperty("prepStmtCacheSqlLimit", "2048"); config.addDataSourceProperty("autoReconnect", true); - config.addDataSourceProperty("initializationFailFast", true); + config.setInitializationFailFast(false); ds = new HikariDataSource(config); ConsoleLogger.info("Connection pool ready"); } @@ -912,7 +912,7 @@ public class MySQL implements DataSource { config.addDataSourceProperty("prepStmtCacheSize", "250"); config.addDataSourceProperty("prepStmtCacheSqlLimit", "2048"); config.addDataSourceProperty("autoReconnect", true); - config.addDataSourceProperty("initializationFailFast", true); + config.setInitializationFailFast(false); config.setPoolName("AuthMeMYSQLPool"); ds = new HikariDataSource(config); if (!reload)