Skip to content

Database and phpMyAdmin

Your plan includes a MySQL (MariaDB) database. You’ll find it in the Databases section.

Database in the Game Panel

  1. The eye icon shows the connection details, including the password
  2. The Open in phpMyAdmin icon opens the database in phpMyAdmin, already signed in, with no password to type
  3. Endpoint: the database server address and port

You’ll also find the database name (Database column) and the username (Username column).

  1. Click Open in phpMyAdmin
  2. Select your database in the left column
  3. Open the Import tab, choose your .sql file and click Import

In your server.cfg, add the connection string with your details (endpoint, username, password, database name).

For oxmysql (ESX, QBCore…):

server.cfg
set mysql_connection_string "mysql://USERNAME:PASSWORD@31.58.68.58:3306/DATABASE_NAME?charset=utf8mb4"

Or in the classic format:

server.cfg
set mysql_connection_string "server=31.58.68.58;port=3306;uid=USERNAME;password=PASSWORD;database=DATABASE_NAME"

Then restart the server.

I can’t connect with HeidiSQL or Navicat from my PC. For your security, the database is not reachable from outside. Use phpMyAdmin from the panel. Your FiveM server can reach it without any issue.

I need a second database. The number of databases depends on your plan (shown at the top of the page). Contact support to add more.

Is my data included in backups? No, backups only contain files. Export your database regularly from phpMyAdmin (Export tab).