πMySQL Guide
This is a guide to help you setup MySQL with this plugin.
Overview
When MySQL is enabled it'll copy the parent server's plugin data, this incudes menu items, interface items, shop items, stock and restock time. Dynamic shop mode is also supported with MySQL. Any changes need to be done on the parent server, any changes made on the parent server will reflect on all connected servers.
How to setup MySQL
Open the
config.yml.Under the
mysqlkey changeenabledtotrueand input your MySQL database details.If this is the parent server also make sure the key
parent-serveris set totrue. For all other servers connected to this database, change it tofalse.Restart server, do not reload.
If you didn't get any errors on startup you successfully setup MySQL for this plugin.
How To Update Child Servers To Parent Server
When you've made a change to the parent server, like adding or removing items, you'll want to run the command
/shop updatedatabaseto push those updates to the MySQL database. You can also simply restart the server.When this is completed you can now run
/shop reloadon the child servers to apply the update. You can also simply restart the server.You should now see the updates from the parent server on your child server.
Last updated