Starting with version 1.0.96, game servers in GSP-Panel can have databases associated with them. GSP-Panel has the ability to create and delete MySQL databases. Databases get created on the same server that hosts the GSP-Panel frontend, at this time it is not possible to manage remote MySQL installations.
To get started with this feature you will need to make sure your GSP-Panel MySQL user has the permissions below and you will need to configure the game template to allow for database creation and management by going to Configuration > Game Templates > Edit > General > Database Settings.
In order for GSP-Panel to create databases and users you will need to make sure the GSP-Panel MySQL user has the permissions listed below. Please note in most cases this feature will not work on shared web hosting as a result of needing these permissions.
These permissions can typically be granted with the following SQL query, replace YOURDBUSER with the user that GSP-Panel uses for MySQL access.
GRANT SELECT, SHOW DATABASES, CREATE USER ON *.* TO 'YOURDBUSER'@'localhost' REQUIRE NONE WITH GRANT OPTION;
When a database creation is requested the following happens:
When a database removal is requested the following happens: