phpMyAdmin config

Avatar
  • Answered
Hi, I am in the middle of development. I would like to edit the config file of my phpMyAdmin in order to allow MySQL users to drop database.

At the moment we are getting the "DROP DATABASE" disabled statement
Avatar
JacobIMH
Hello AoumiS, and thanks for your question. Typically we wouldn't recommend utilizing phpMyAdmin to add or remove databases, as these are managed within cPanel itself, and if you just drop a database in phpMyAdmin, cPanel will still think it exists. You can follow our guide on how to delete a database in cPanel for the recommended way to drop a database on our servers. Alternatively if you really wanted this ability in phpMyAdmin for some reason, you would want to install a separate copy of phpMyAdmin via Softaculous, then in your config.inc.php file you'd add the following line of code to enable the DROP DATABASE command:

/* Turn on Database DROP */
$cfg['AllowUserDropDatabase'] = true;

Please let us know if you had any other questions at all. - Jacob