¶ FiveM: How to Setup Your Database on Your FiveM Server
To import your sql file to the DB, you have to login to: or https://eu.sql.gravelhost.com/ or https://mysql.gravelhost.com/ , for example. You will find this on the Databases tab of your server panel to ensure you are selecting the correct one.
A database is a system where your FiveM server keeps its data organized for future use. It's essential for storing player information, including their items, money, and other details.
To the right of this page, you will see a ‘New Database’ button click on this button.
Provide Database Details:
Enter your preferred name for the database in the Database name field.
Leave the Connection From field empty to allow all connections to your server.
Press “Create Database” towards the bottom.
¶ How to Connect Your Database to Your FiveM™ Server
Access Server Files:
Edit Server Configuration:
Locate and click on your current server.cfg file to open it.
Add the MySQL connection string to your server.cfg file, replacing the placeholders with the actual values from the databases created in the GamePanel.
Examples:
set mysql_connection_string "mysql://databaseuser:databasepassword@endpoint:3306/databasename"
set mysql_connection_string "user=databaseuser;password=databasepassword;host=endpoint;port=3306;database=databasename"
For more assistance regarding changing your server icon or other FiveM server-related queries, please visit or join our community on https://discord.gg/gravelhost/