1. Create the database
In Lumi-Panel:- Open Databases.
- Click New Database, give it a name like
fivem, leave connection from as%. - Save the Endpoint, Username, and Password - you’ll need them next.
2. Import your framework’s schema
Sign in to db.lumixsolutions.org, select your database in the left sidebar, click Import, and upload your framework’s.sql file (e.g. ESX’s legacy.sql, QBCore’s qb-core.sql).
3. Configure the connection string
oxmysql (recommended)
Inserver.cfg:
USERNAME, PASSWORD, HOST, PORT, and DATABASE with the values from the Databases tab.
mysql-async (legacy)
Configuring the database in txAdmin
When you run through txAdmin’s setup wizard (or change the database later under Settings → Server), it asks for the database host, port, username, password, and database name separately. The Lumi-Panel Endpoint looks likeDB_HOST:DB_PORT (for example db.example.lumixsolutions.org:3306). Split it into the two fields txAdmin asks for:
If you’d rather paste a single string, the JDBC connection string field in Lumi-Panel already has every value baked in:
4. Restart
Restart the server from the Console. On boot you should see something like:ECONNREFUSED, Access denied, or Unknown database, walk through Startup Issues → Database connection refused.
Best practices
- Never commit credentials. Keep
server.cfgout of public repos, or use a separatesecrets.cfgthat’s gitignored. - Rotate the password from the Databases tab if you suspect a leak - then update
server.cfgand restart. - Back up before big changes. Use phpMyAdmin’s Export or trigger a panel-wide Backup before running schema migrations.

