Cart 0 Cart
🌐
Language & Currency
Langue & Devise
Language & Currency
← Retour à la base de connaissance
Article

MySQL database for FiveM: creation + oxmysql

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…

🛡️ Gaming Anti-DDoS ⚡ NVMe 🇨🇦 100% Canadian ↩️ 7-day guarantee 🖥️ Pterodactyl ⚙️ AMD Ryzen 7 9800X3D
📚 Base de connaissance

ESX and QBCore store players, vehicles and inventories in a MySQL database. Here's the full setup.

Create the database on the panel

  1. Databases → New Database.
  2. Name it (e.g. fivem) → the panel generates username and password.
  3. Note the credentials (Credentials button).
Create a MySQL database on the NordikServer panel

Configure oxmysql

  1. The oxmysql resource ships with txAdmin deployments — otherwise grab it on GitHub (overextended/oxmysql) into resources/.
  2. In server.cfg, add at the very top:
    set mysql_connection_string "mysql://USER:PASS@HOST:3306/DB_NAME"
    ensure oxmysql
  3. 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.

Classic error: Access denied = wrong password in the connection string (special chars must be encoded: @ → %40).

Tu n'as pas trouvé ta réponse ?

Notre équipe canadienne répond en moins d'une heure, 7j/7.

Cet article t'a été utile ?

Powered by WHMCompleteSolution

Servers online

Launch your server
in 60 seconds.

Plans from $CA6.99 · Anti-DDoS Protection · 100% Canadian

NordikServer — Game Panel
$ server start
✔ Online in 2.4s — ready
[INFO] Panel ready · Resources allocated
[DDoS] Anti-DDoS shield: ACTIVE
Gaming Anti-DDoS
7-Day guarantee
Online in 60s
🇨🇦 Canadian host
99.99% Uptime
Loading