Last updated
Last updated
Follow the instructions below to backup your database. You need to gather your details for your database and server details. Backups for all regular members are every 4 days and have a max of 2 backups all together.
Enter a memorable name for your reference, such as the name of your RP server.
This is the IP address of the server where your database is hosted (where XAMPP or MySQL is installed).
The default port is usually 3306, but you may have a custom port. You need to open this port in your firewall to allow the connection. For instructions on how to open your ports, you can visit article. Ensure you open port 3306 for TCP incoming only.
IMPORTANT: DO NOT open your ports without adding a password to your database, as this will allow anyone to log into your database.
MySQL Database:
To find the name of your database, you can use a database viewer such as HeidiSQL. Refer to the example below for guidance. If you are using this for FiveM, you can typically find the database name in your server.cfg
file.
MySQL User:
You can typically find the MySQL user in the mysql_connection_string
section of your FiveM server.cfg
file. By default, it is usually set to root
unless it has been changed.
MySQL Password: If it is currently unset (no password), you need to set a password for security reasons.
IMPORTANT: DO NOT open your ports without adding a password to your database, as it will allow anyone to log into your database.
To add a password to your database, open your database command prompt and run the following command, replacing MyNewPasswordGoesHere
with the password you want to set:
After setting a password, you need to configure your database to allow connections from outside your local machine. Open your database command prompt and run the following command, replacing MyPasswordGoesHere
with your database password:
If this is for FiveM, your server.cfg
should then be updated to include the following line with your new password and your database name.