Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phpmyadmin enable drop database statement

People also ask

How do I drop a database in phpMyAdmin?

Go the phpMyAdmin home page and select the database which you want to delete. Now select operations and click on drop the database as shown in the screenshot below.

How do I force MySQL to drop a database?

First, launch the MySQL workbench and log in to the MySQL Server. Second, right-click the database that you want to remove, for example, testdb2 and choose the Drop Schema... option. Third, MySQL Workbench displays a dialog to confirm the deletion.

What is drop database statement?

Dropping a database deletes the database from an instance of SQL Server and deletes the physical disk files used by the database. If the database or any one of its files is offline when it is dropped, the disk files are not deleted.


It looks like there is a phpMyAdmin setting that you need to edit in config.inc.php.

boolean $cfg['AllowUserDropDatabase'] (line 503)

show a 'Drop database' link to normal users


Yes, you can do it with the following steps:

  1. Go to wamp/apps/phpmyadmin3.5.1/libraries

  2. Open the file called "config.default.php"

  3. Go to line 653 and change $cfg['AllowUserDropDatabase'] = false; to true

  4. Restart the server to see the changes

For Windows XP users: if the effect is not reflected, exit WAMP through the quick launch icon and try restarting it.


Without touching any config files

If you have your phpmyadmin open, on the left side you'll see a database icon right next to your home icon( if you mouse over it - 'query window' title will pop up ), click on it and the window showed will allow you to enter the 'drop query' without touching any config files( at least i had no problems, hope it will help ).

Database button


  1. Go to -> your_drive/xampp/PhpMyAdmin/libraries/ (Windows with XAMPP) or /usr/share/phpmyadmin/libraries/ (Linux with PHP/Apache/MySQL/PhpMyAdmin)

  2. Open a file name “config.default.php“

  3. Find $cfg['AllowUserDropDatabase']

  4. You will find the value is “False. Make it to ”True”.

  5. Linux restart apache2 in termina /etc/init.d/apache2 restart (Linux) or XAMPP Control Panel restart Mysql