Panier 0 Panier
🌐
Langue & Devise
Language & Currency
Langue & Devise
← 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…

🛡️ Anti-DDoS gaming ⚡ NVMe 🇨🇦 100 % canadien ↩️ Garantie 7 jours 🖥️ 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

Serveurs en ligne

Lancez votre serveur
en 60 secondes.

Forfaits dès 6,99 $CA · Protection Anti-DDoS · 100 % Canadien

NordikServer — Game Panel
$ server start
✔ Online in 2.4s — ready
[INFO] Panel ready · Resources allocated
[DDoS] Anti-DDoS shield: ACTIVE
Anti-DDoS Gaming
Garantie 7 jours
En ligne en 60s
🇨🇦 Hébergeur Canadien
99.99% Uptime
Chargement