PingRite
Back to Help Center

How to setup a database for your FiveM server

Updated March 27, 2026

Some FiveM server templates require a database connection for storing persistent data. This guide walks you through creating a database and entering the connection details in txAdmin.

Note: This article is part of our FiveM setup series. If you need help with the initial server configuration or don't see the database input fields, check out our getting started guide first.


Creating Your Database

  1. Open your server control panel.
  2. Go to the Databases section.

FXServer with the database button highlighted

  1. Click New Database.
  2. Choose a name for the database and click Create Database.

Configuring a new MariaDB database

  1. Make a note of the database name, then click the Eye icon.

Database connection details after creation


Entering Your Database Connection Details

Note: If the option to enter connection details isn't visible, your chosen template may not need a database. See our Getting started with your FiveM server guide for more details.

  1. Click Show/Hide Database Options (advanced) during the txAdmin setup process.

Showing the database options in txAdmin setup

  1. Fill in the connection details from your newly created database and run the recipe.

Entering database connection details in txAdmin setup

With the database successfully connected, you can continue configuring your server by following our Getting started guide.