diff --git a/common/src/main/java/me/lucko/luckperms/common/storage/backing/MySQLBacking.java b/common/src/main/java/me/lucko/luckperms/common/storage/backing/MySQLBacking.java index 4932ec6a..ddac2a2a 100644 --- a/common/src/main/java/me/lucko/luckperms/common/storage/backing/MySQLBacking.java +++ b/common/src/main/java/me/lucko/luckperms/common/storage/backing/MySQLBacking.java @@ -76,7 +76,8 @@ public class MySQLBacking extends SQLBacking { config.addDataSourceProperty("cacheServerConfiguration", true); config.addDataSourceProperty("elideSetAutoCommits", true); config.addDataSourceProperty("useLocalSessionState", true); - config.setLeakDetectionThreshold(5000); + config.setConnectionTimeout(10000); // 10 seconds + config.setLeakDetectionThreshold(5000); // 5 seconds hikari = new HikariDataSource(config);