Skip to main content

Persistent Data Storage


Most FiveM communities rely on a database to store persistent information such as character bank balances, vehicle ownership, and housing data. Establishing a secure and fast connection string is the most critical step in setting up a functional roleplay environment.
Reading TimeDifficultyLast Updated
7 minutesIntermediateJanuary 2026

1. Creating the Database

  1. Log in to your FREAKHOSTING GamePanel.
  2. Select the Databases tab.
  3. Click New Database.
  4. Database Name: Enter a name for your server (e.g., fivem_rp).
  5. Connection From: Leave as % (Allow any) for internal synchronization.
  6. Click Create. Once generated, click the Eye icon to view your credentials (Username, Password, and Endpoint).

2. The Connection String

Open your server.cfg file. Depending on which database resource you use, the syntax will vary slightly. Modern servers use oxmysql.
set mysql_connection_string "mysql://USER:PASSWORD@ENDPOINT:3306/DATABASE_NAME?waitForConnections=true&charset=utf8mb4"

Legacy (mysql-async)

set mysql_connection_string "server=ENDPOINT;database=DATABASE_NAME;userid=USER;password=PASSWORD"

Support Channels

If you need assistance or have any questions, please contact our support team:

First Month Discount

Use code KB20 at checkout to get 20% off your first month of hosting!

Last Updated: January 2026 | FiveM: Database connected.