phpmyadmin enable drop database statement

后端 未结 19 2294
囚心锁ツ
囚心锁ツ 2021-01-31 03:10

I was alerted by my hosting provider that I exceed my 1000 table limit. I have a lot of databases and would like to delete more at once. Unfortunaltley they don\'t have a multis

相关标签:
19条回答
  • 2021-01-31 03:59

    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

    Restart the wamp ...Close wamp server and open again. :)

    Enjoy!

    0 讨论(0)
  • 2021-01-31 04:01

    you will need to update file config.default generally phpmyadmin's libraries folder

    line 653 (may very depending on version)

    $cfg['AllowUserDropDatabase'] = true;

    0 讨论(0)
  • 2021-01-31 04:04

    I was able to do without modifying any of the above mentioned files.

    Step 1

    click on the database icon next to home icon click on the database icon next to home icon

    Step 2

    on the right side of the screen select the operations tab on the right side of the screen select the operations tab

    Step 3 Select the drop the database option and it should work[for me it worked even with the tables containing data
    Select the drop the database option and you are done

    0 讨论(0)
  • 2021-01-31 04:05

    Drop the database and create a new one. To do so, go to phpmyadmin and select the database over the left panel. Then Go to 'Operations' tab on the head. Find the option to Remove Database at middle right. Click on DROP DATABASE and way to go...

    0 讨论(0)
  • 2021-01-31 04:05

    I noticed the same problem when I was trying to drop a database (5.0.2 is the version of PhpMyAdmin I am using). In my case, there is no $cfg['AllowUserDropDatabase'] variable in the config.inc.php file and the default config file libraries/config.default.php has it false by default.

    If you want to allow dropping a database temporarily, I would recommend just adding a $cfg['AllowUserDropDatabase'] = true; line in the end of the config.inc.php file (or change the false value to true instead if it's already there) instead of modifying the default value in libraries/config.default.php that some answers here recommend because as the documentation says, "the file is not intended for changes". After doing your thing, just delete the line altogether or set it back to false again.

    0 讨论(0)
  • 2021-01-31 04:05

    Go to the left sidebar of phpmyadmin where there is a listing of your databases and select the specific database that you want to delete.
    Having done that under the menu bar where there are several options such as query, sql, operations, etc choose structure.
    When you do that it will give you a listing of all the tables of the DB and right below the tables there is a checkbox choose check all and on the dropdown after that choose drop.

    0 讨论(0)
提交回复
热议问题