ESX and QBCore store players, vehicles and inventories in a MySQL database. Here's the full setup.
Create the database on the panel
- Databases → New Database.
- Name it (e.g.
fivem) → the panel generates username and password. - Note the credentials (Credentials button).
Configure oxmysql
- The
oxmysqlresource ships with txAdmin deployments — otherwise grab it on GitHub (overextended/oxmysql) intoresources/. - In
server.cfg, add at the very top:set mysql_connection_string "mysql://USER:PASS@HOST:3306/DB_NAME" ensure oxmysql - Restart — the console should show
[oxmysql] Database connection established.
Import the tables
Frameworks ship .sql files. Import them via the database's Manage button (phpMyAdmin) → Import tab → pick the file → Run.
Access denied = wrong password in the connection string (special chars must be encoded: @ → %40).











