Continue with database adjustments.
This commit is contained in:
@@ -50,11 +50,8 @@ Login = root
|
||||
# Database connection password
|
||||
Password =
|
||||
|
||||
# Default: 50
|
||||
MaximumDbConnections = 50
|
||||
|
||||
# Default: 0
|
||||
MaximumDbIdleTime = 0
|
||||
# Default: 40
|
||||
MaximumDbConnections = 40
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
@@ -50,11 +50,8 @@ Login = root
|
||||
# Database connection password
|
||||
Password =
|
||||
|
||||
# Default: 10
|
||||
MaximumDbConnections = 10
|
||||
|
||||
# Default: 0
|
||||
MaximumDbIdleTime = 0
|
||||
# Default: 5
|
||||
MaximumDbConnections = 5
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
@@ -731,7 +731,6 @@ public final class Config
|
||||
public static String DATABASE_LOGIN;
|
||||
public static String DATABASE_PASSWORD;
|
||||
public static int DATABASE_MAX_CONNECTIONS;
|
||||
public static int DATABASE_MAX_IDLE_TIME;
|
||||
public static boolean BACKUP_DATABASE;
|
||||
public static String MYSQL_BIN_PATH;
|
||||
public static String BACKUP_PATH;
|
||||
@@ -1169,7 +1168,6 @@ public final class Config
|
||||
DATABASE_LOGIN = serverSettings.getString("Login", "root");
|
||||
DATABASE_PASSWORD = serverSettings.getString("Password", "");
|
||||
DATABASE_MAX_CONNECTIONS = serverSettings.getInt("MaximumDbConnections", 10);
|
||||
DATABASE_MAX_IDLE_TIME = serverSettings.getInt("MaximumDbIdleTime", 0);
|
||||
|
||||
BACKUP_DATABASE = serverSettings.getBoolean("BackupDatabase", false);
|
||||
MYSQL_BIN_PATH = serverSettings.getString("MySqlBinLocation", "C:/xampp/mysql/bin/");
|
||||
@@ -2776,7 +2774,6 @@ public final class Config
|
||||
DATABASE_LOGIN = ServerSettings.getString("Login", "root");
|
||||
DATABASE_PASSWORD = ServerSettings.getString("Password", "");
|
||||
DATABASE_MAX_CONNECTIONS = ServerSettings.getInt("MaximumDbConnections", 10);
|
||||
DATABASE_MAX_IDLE_TIME = ServerSettings.getInt("MaximumDbIdleTime", 0);
|
||||
|
||||
BACKUP_DATABASE = ServerSettings.getBoolean("BackupDatabase", false);
|
||||
MYSQL_BIN_PATH = ServerSettings.getString("MySqlBinLocation", "C:/xampp/mysql/bin/");
|
||||
|
@@ -39,7 +39,6 @@ public class DatabaseFactory
|
||||
_hds.setUsername(Config.DATABASE_LOGIN);
|
||||
_hds.setPassword(Config.DATABASE_PASSWORD);
|
||||
_hds.setMaximumPoolSize(Config.DATABASE_MAX_CONNECTIONS);
|
||||
_hds.setIdleTimeout(Config.DATABASE_MAX_IDLE_TIME);
|
||||
_hds.setConnectionTimeout(600000);
|
||||
_hds.setIdleTimeout(1200000);
|
||||
_hds.setMaxLifetime(1200000);
|
||||
|
Reference in New Issue
Block a user