Skip to main content

Database Configuration

SigmaOrders supports SQLite (default, file-based, zero setup, good for under ~200 players) and MySQL (external server, better for large or multi-server setups).

SQLiteโ€‹

database:
type: SQLITE

No additional configuration is required. Data is stored in plugins/SigmaOrders/database.db - back up by copying this file. Limitation: single-server only, slower under heavy concurrent load.

MySQLโ€‹

database:
type: MYSQL
mysql:
host: localhost
port: 3306
database: sigma_orders
username: root
password: your_password
pool-size: 10
SettingTypeDefaultDescription
hostStringlocalhostDatabase server hostname
portInteger3306Database server port
databaseStringsigma_ordersDatabase name
usernameStringrootDatabase username
passwordStringpasswordDatabase password
pool-sizeInteger10Connection pool size; increase for high-traffic servers (50 max recommended)

Setup: create the database/user in MySQL first (CREATE DATABASE sigma_orders CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;), set type: MYSQL with the connection details above, then restart - the plugin creates tables automatically.

warning

Migration from SQLite to MySQL is not automatic. Back up database.db first; existing data must be exported/imported manually or you start fresh.

Troubleshootingโ€‹

SymptomCheck
"Failed to connect to database"Server running, host/port, credentials, firewall rules
Slow operations / timeoutsIncrease pool-size, check server resources, consider MySQL for large servers
"Access denied"User permissions/GRANTs, database name

See Alsoโ€‹