Refactored DatabaseFactory.
This commit is contained in:
99
trunk/dist/login/config/LoginServer.ini
vendored
99
trunk/dist/login/config/LoginServer.ini
vendored
@@ -7,6 +7,7 @@
|
||||
# LAN (LOCAL area network) - typically consists of computers connected to the same router as you.
|
||||
# WAN (WIDE area network) - typically consists of computers OUTSIDE of your router (ie. the internet).
|
||||
# x.x.x.x - Format of an IP address. Do not include the x'es into settings. Must be real numbers.
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Networking
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -30,6 +31,43 @@ LoginHostname = 127.0.0.1
|
||||
# Default: 9014
|
||||
LoginPort = 9014
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# Specify the appropriate driver and url for the database you're using.
|
||||
# Examples:
|
||||
# Driver = com.mysql.jdbc.Driver (default)
|
||||
# Driver = org.hsqldb.jdbcDriver
|
||||
# Driver = com.microsoft.sqlserver.jdbc.SQLServerDriver
|
||||
Driver = com.mysql.jdbc.Driver
|
||||
|
||||
# Database URL
|
||||
# URL = jdbc:mysql://localhost/l2jmobius (default)
|
||||
# URL = jdbc:hsqldb:hsql://localhost/l2jmobius
|
||||
# URL = jdbc:sqlserver://localhost/database = l2jmobius/user = sa/password =
|
||||
URL = jdbc:mysql://localhost/l2jmobius?useUnicode=true&characterEncoding=utf-8
|
||||
|
||||
# Database user info (default is "root" but it's not recommended)
|
||||
Login = root
|
||||
|
||||
# Database connection password
|
||||
Password =
|
||||
|
||||
# Default: 10
|
||||
MaximumDbConnections = 50
|
||||
|
||||
# Default: 0
|
||||
MaximumDbIdleTime = 0
|
||||
|
||||
# The time before a database connection closes (in milliseconds)
|
||||
# If a query takes longer to execute than the time defined here, the server will throw "Unclosed Connection!" error.
|
||||
# If you get often this error message, try increasing this.
|
||||
# Default: 60000ms
|
||||
ConnectionCloseTime = 60000
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Security
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -62,44 +100,9 @@ FastConnectionTime = 350
|
||||
# Default: 50
|
||||
MaxConnectionPerIP = 50
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# Specify the appropriate driver and url for the database you're using.
|
||||
# Examples:
|
||||
# Driver = com.mysql.jdbc.Driver (default)
|
||||
# Driver = org.hsqldb.jdbcDriver
|
||||
# Driver = com.microsoft.sqlserver.jdbc.SQLServerDriver
|
||||
Driver = com.mysql.jdbc.Driver
|
||||
# Database URL
|
||||
# URL = jdbc:mysql://localhost/l2jmobius (default)
|
||||
# URL = jdbc:hsqldb:hsql://localhost/l2jmobius
|
||||
# URL = jdbc:sqlserver://localhost/database = l2jls/user = sa/password =
|
||||
URL = jdbc:mysql://localhost/l2jmobius?useUnicode=true&characterEncoding=utf-8
|
||||
# Database user info (default is "root" but it's not recommended)
|
||||
Login = root
|
||||
# Database connection password
|
||||
Password =
|
||||
|
||||
# Database Connection Pool
|
||||
# Default: C3P0
|
||||
# Available: C3P0, HikariCP, BoneCP
|
||||
ConnectionPool = C3P0
|
||||
|
||||
# Default: 10
|
||||
MaximumDbConnections = 50
|
||||
|
||||
# Default: 0
|
||||
MaximumDbIdleTime = 0
|
||||
|
||||
# Connection close time.
|
||||
# Default: 60000
|
||||
ConnectionCloseTime = 20000
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Misc.
|
||||
# Misc Login Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# If False, the license (after the login) will not be shown.
|
||||
@@ -113,20 +116,22 @@ AutoCreateAccounts = True
|
||||
# Defaults to the directory where the server data are stored.
|
||||
DatapackRoot = data\
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Scheduled Login Restart
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# Enable disable scheduled login restart.
|
||||
# Default: False
|
||||
LoginRestartSchedule = False
|
||||
# Time in hours.
|
||||
# Default: 24
|
||||
LoginRestartTime = 24
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Developer Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# Default: False
|
||||
Debug = False
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Restart LS every 24 hours?
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# Enable disable scheduled login restart.
|
||||
# Default: False
|
||||
LoginRestartSchedule = True
|
||||
# Time in hours.
|
||||
# Default: 24
|
||||
LoginRestartTime = 24
|
||||
Reference in New Issue
Block a user