Database FAQ
Here you can view the frequent asked questions for the Player Economy database system.
1. Why does Player Economy keep throwing "No operations allowed after connection closed."?
If you're running MySQL, this is a very common issue. Sometimes your database server might be closing the connection because the connection is "sleeping", you can solve this by either adding "autoReconnect=true"
to your sql arguments in the config.yml
or you can enable the close
option in the config.yml
to close connections after every few minutes and open a new one.
2. Why does Player Economy keep throwing "No operations allowed after connection closed."?
If you're running MySQL, this is a very common issue. Sometimes your database server might be closing the connection because the connection is "sleeping", you can solve this by either adding "autoReconnect=true"
to your sql arguments in the config.yml
or you can enable the close
option in the config.yml
to close connections after every few minutes and open a new one.
3. How do I convert my data from the SQLite to MySQL?
You can convert all of your data back and forth between MySQL and SQite. To convert from SQLite to MySQL, you will need to enter all of you connection details and enable MySQL. To convert from MySQL to SQLite you need to make sure all of your connection details have been entered but MySQL is disabled
Once completed, you can also enable the convert option. Once enabled, restart your server. The data will be converted. Once its been converted, disable the convert option back in the config then restart your server again. Should be all good to go!
Last updated