KnowledgebaseFiveM

How to setup a database for your FiveM server

How to setup a database for your FiveM server

FiveM
ยท
Sep 18, 2025
ยท
3 min read

Depending on the chosen template, you may be required to connect a database to your server for your server to store data in. This guide will cover how to setup this database and entering its details into txAdmin.

Note:

This article is part of our FiveM setup guide, if you wish to get more info on setting up your FiveM server or do not see the fields to enter database options, please read this article first.


Creating your database

  1. Access your control panel.

  2. Navigate to Databases. FXServer with the database button highlighted

  3. Click on Create Database. Create a new database in the Shockbyte control panel

  4. Give the database a name, select MariaDB as type, and create the database. Creating a MariaDB database in the Shockbyte control panel

  5. Take note of all details, you will need to enter them later. Creating a MariaDB database in the Shockbyte control panel


Entering your database connection details

Note:

If you do not see the option to enter connection details, your setup might not require one. Please refer to our guide on Getting started with your FiveM server for more information.

  1. Show the Database Options during your setup. Show the Database Options during your setup.
  2. Enter the connection details of your database, and run the recipe. Enter the Database Options during your setup.

Now that your server has successfully connected to the database, you can continue setting up your server using our Getting started guide.

Join Discord