What Is a Database?

A database is a place for your FXServer 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 RocketNode Panel and click on your server hosting for FXServer.
  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 FXServer 

  1. Head to the game panel and stop your server hosting for FXServer
  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:
  4. set mysql_connection_string "server=localhost;uid=mysqluser;password=password;database=fx"
  5. Change the details in the connection string to your database details, you can find them under the database tab.
  6. 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’.
Was this answer helpful? 8 Users Found This Useful (30 Votes)