We are working on a UI panel that will manage the creation/altering/deletion of MySQL users and databases. To prevent out-of-sync situations, we would like to disable the creation/deletion of MySQL databases for MySQL users.
Our 'global' users - that can access all databases that starts with its username - have the capability to create and drop databases currently. This is how the privileges for the global user looks like (this is not an admin/root user):
GRANT USAGE ON *.* TO `testtt`@`%`
GRANT ALL PRIVILEGES ON `testtt\_%`.* TO `testtt`@`%`
I know the creation of databases can be disabled within PHPMyAdmin, but I feel more confident to configure this in the PRIVILEGES of a specific user. I'm having a hard time finding out which PRIVILEGE we need to revoke or alter in order to prevent users from having the ability to create/delete databases.
Hopefully you can help us out!