How To Setup Your Database

What Is A Database?

A database is a place for your FiveM™ server to store its data in an organized way that it can read and use later on. You will need a database to store your player’s data, such as the items they have, their money, and more.

How To Create A Database

  1. Head to the Cyber Server Hosting Game Panel and click on your server hosting for FiveM™.
  2. To the right of your console tab, go to the “Databases” tab. (You may have to use the scroll bar on the top to see it).
  3. To the right of this page, you will see a ‘Create Database’ button click on this button and put any name into the “Database Name” blank.
  4. Press “Create Database” towards the bottom.

How To Connect Your Database To Your FiveM™ Server

  1. Head to the game panel and stop your server hosting for FiveM™.
  2. Make sure you have the latest version of mysql-async installed on your server.
  3. In your server’s server.cfg file, insert the following line:
set mysql_connection_string "server=localhost;uid=mysqluser;password=password;database=fx"
  1. Change the specified (red) spaces with the corresponding database detail, you can find them under the database tab.
  2. As a side note, you can also find these details written out in this format for you by clicking on the ‘eye’ icon under the ‘Databases’ tab. Make sure to copy the ‘FXServer Connection String’.

Facing Any Issues?

If you’re still having issues – don’t hesitate to reach out to our support team who are always more than happy to assist you with any queries/concerns you may have.

Haven’t got a FiveM™ server yet, or thinking about starting one? Here at Cyber Server Hosting, we offer premium hosting for great prices. If you’re unsure or need any help, contact a member of staff for sales assistance via support ticket or live chat.

Cette réponse était-elle pertinente?

Articles connexes

Connecting To FileZilla/WINSCP (SFTP)

This is a tutorial on how to connect to FileZilla or WINSCP to add files to your FXServer Host....

How To Install EasyAdmin

What is EasyAdmin? If you’re unfamiliar with EasyAdmin, it’s a highly customizable...

How To Install OxMySQL

What is OxMySQL? This guide will cover the basic installation for OxMySQL on an FXServer....

How To Install FiveM On Your VPS

Requirements For The Installation There are a couple of things that you need to do in order to...