MySQL Support - File14/ProCosmetics GitHub Wiki
MySQL
By default, ProCosmetics uses SQLite. However, if you are running ProCosmetics on multiple servers and want to sync the data, you should use MySQL.
Setup
- Ensure you have a MySQL database created and set up.
- Locate the
storage
section in theconfig.yml
and settype
toMYSQL
. - Configure the
host
,database
,user
andpassword
values to allow ProCosmetics to connect to the database. - Optionally, change the
port
andtable
if required or wanted. - Save the file and restart the server. Data such as coins and equipped cosmetics should now be saved in the database.
Troubleshooting
Could not create connection to database server. Attempted reconnect 3 times. Giving up.
OR Communications link failure
If you get this error, or another error that is similar (failed to connect), it is most likely that the host
or port
values are incorrect. Double-check these and try again.
Access denied for user 'x'@'x'
If you are getting this error, it is able to reach the server, but the details are incorrect. Make sure all of the information you input to connect to the database is correct.