company logo

Help center

Go to ChipHead
All collectionsGames LibraryFiveMSetting Up a MySQL Database for FiveM

Setting Up a MySQL Database for FiveM

Learn how to create and connect a MySQL database to your FiveM server for scripts and data storage.

Connect your FiveM server to a MySQL database to store player data, jobs, and other important information.

Some FiveM templates require a database connection to save player data and server information. Setting up a database ensures your server can store and manage data efficiently. This guide will show you how to create a database and connect it through txAdmin.

info icon
Note:
This guide is part of the full FiveM setup process. If you don’t see the database configuration fields, check out our Getting Started with FiveM guide first.

Creating Your Database

  1. Log in to your ChipHead Panel.

  2. Navigate to the Databases section.

  3. Enter a name & Click Create Database.

  4. Select View Details to see username & password.

  5. Make sure to note down the database name, username, password, and host - you’ll need these later when connecting.


Entering Your Database Connection Details

info icon
Note:
If you don’t see an option to enter connection details, your template may not require a database. Refer to our FiveM setup guide for more information.
  1. In txAdmin, enable Database Options during setup.

  2. Enter the following details from your database:

    • Host

    • Username

    • Password

    • Database Name

  3. Run the setup recipe to connect your server.

Once your FiveM server has successfully connected to the database, it will begin storing data automatically.


success icon
All done!
Your FiveM server is now connected to its database. You can continue setting up your scripts and resources, confident that all player progress and data will be safely stored on your ChipHead hosted server.

Did this answer your question?
😞
😐
😁