phpMyAdmin config

Category: Databases

AoumiS
Asked:
2013-04-26 2:41 pm EST

Hits: 344
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

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

JacobIMH
Staff
9,521 Points
2013-04-26 3:11 pm EST
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

You must login before you can post a comment about this answer.

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!