Files
CHOMPStation2/config/example/dbconfig.txt
2024-04-05 07:44:20 +02:00

45 lines
1.4 KiB
Plaintext

## MySQL Connection Configuration
## This is used for stats, feedback gathering,
## administration, and the in game library.
## Should SQL be enabled? Uncomment to enable
#SQL_ENABLED
## Server the MySQL database can be found at.
## Examples: localhost, 200.135.5.43, www.mysqldb.com, etc.
ADDRESS localhost
## MySQL server port (default is 3306).
PORT 3306
## Database for all SQL functions, not just feedback.
FEEDBACK_DATABASE feedback
## Username/Login used to access the database.
FEEDBACK_LOGIN username
## Password used to access the database.
FEEDBACK_PASSWORD password
## Time in seconds for asynchronous queries to timeout
## Set to 0 for infinite
ASYNC_QUERY_TIMEOUT 10
## Time in seconds for blocking queries to execute before slow query timeout
## Set to 0 for infinite
## Must be less than or equal to ASYNC_QUERY_TIMEOUT
BLOCKING_QUERY_TIMEOUT 5
## The minimum number of sql connections to keep around in the pool. Setting this higher on servers geographically away from the database can improve performance.
POOLING_MIN_SQL_CONNECTIONS 1
## The maximum number of sql connections to the database.
POOLING_MAX_SQL_CONNECTIONS 25
## The maximum number of concurrent asynchronous queries that can be pending a result before we start queuing further database queries.
MAX_CONCURRENT_QUERIES 25
# Track population and death statistics
# Comment this out to disable
#ENABLE_STAT_TRACKING