Skip to main content

How to link a database

1. Access the ElypseCloud panel

Connect to your ElypseCloud account via your client area and access the management panel for your FiveM server.

2. Access the Databases section

In your server administration interface, navigate to the Databases section.

3. Create a database

Create a new database.

Connect from

Make sure to leave the "Connect from" field empty or with the % character to allow connection from any IP address.

(Optional) Import your SQL

After creating the database, you can import your SQL file if needed via PhpMyAdmin.

File size limit

The maximum file size for SQL import is 2 MB.

If your file is larger, use an external tool (like an injector) such as HeidiSQL or MySQL Workbench.

4. Choose the connection line type

4. Choose the connection format

There are two connection formats. Choose the one that matches your needs.

"Classic" format (key=value)

Use this format if: Your password does NOT contain the following characters: ; , / ? : @ & = + $ #

set mysql_connection_string "server=DB_HOST;user=DB_USER;database=DB_NAME;password=DB_PASSWORD"

Example with real values:

set mysql_connection_string "server=51.75.30.126;user=S123_user;database=S123_fivem;password=MyPassword"

Meaning of each element:

  • <DB_HOST> → The IP address of your database (ex: 51.75.30.126)
  • <DB_USER> → The username (ex: S123_user)
  • <DB_NAME> → The database name (ex: S123_fivem)
  • <DB_PASSWORD> → Your database password
Special characters with OxMySQL

If your password contains the characters ; , / ? : @ & = + $ #, this format will not work. Use the DSN URL format below or rotate your password in your panel.

"URL DSN" format

Use this format if: Your password contains special characters.

set mysql_connection_string "mysql://DB_USER:DB_PASSWORD@DB_HOST:DB_PORT/DB_NAME"

Example with real values:

set mysql_connection_string "mysql://S123_user:MyPassword@51.75.30.126:3306/S123_fivem"

Meaning of each element:

  • DB_USER → The username (ex: S123_user)
  • DB_PASSWORD → Your database password
  • DB_HOST → The IP address (ex: 51.75.30.126)
  • DB_PORT → The port (always 3306)
  • DB_NAME → The database name (ex: S123_fivem)
Special characters in the password

If your password contains special characters like @, #, $, %, &, etc., you have two options:

Option 1 (Recommended): Rotate your password in your panel to generate a password without special characters.

Option 2 (Advanced): Encode special characters in URL:

  • @ becomes %40
  • # becomes %23
  • $ becomes %24
  • % becomes %25
  • & becomes %26

Example: If your password is Pass@123#, use Pass%40123%23 in the connection string.

5. Configure your server.cfg file

  1. Open the server.cfg file in your server's file manager
  2. Add the connection line you selected (classic format or URL DSN)
  3. Replace all PLACEHOLDER (ex: DB_USER, DB_PASSWORD, etc...) with your real database information
  4. Save the file
With TxAdmin

If you are using TxAdmin, modify the file via the TxAdmin interface to avoid file conflicts.

6. Restart your server

Restart your FiveM server to apply the changes.


🎉 Congratulations

Your database is now linked to your FiveM server!

Need help?

If you encounter any issues, open a ticket on our Discord.