Browse Source

Fixed pool size auto-calculated.

master
MagicBot 2 years ago
parent
commit
cb0a89cb03
  1. 2
      src/engine/gameManager/DbManager.java

2
src/engine/gameManager/DbManager.java

@ -307,6 +307,8 @@ public enum DbManager {
config.setUsername(ConfigManager.MB_DATABASE_USER.getValue()); config.setUsername(ConfigManager.MB_DATABASE_USER.getValue());
config.setPassword(ConfigManager.MB_DATABASE_PASS.getValue()); config.setPassword(ConfigManager.MB_DATABASE_PASS.getValue());
// Must be set lower than SQL server connection lifetime!
config.addDataSourceProperty("maxLifetime", "3600000"); config.addDataSourceProperty("maxLifetime", "3600000");
config.addDataSourceProperty("characterEncoding", "utf8"); config.addDataSourceProperty("characterEncoding", "utf8");

Loading…
Cancel
Save