phpmyadmin enable drop database statement

后端 未结 19 2295
囚心锁ツ
囚心锁ツ 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:53

    I had to use another icon in CPanel (Databases section / MySqlDatabases) instead of (Databases Section / phpMyAdmin).

    (... since my shared web-host provider disables the DROP DATABASE command, and initially limits access to command line and config files.)

    0 讨论(0)
  • 2021-01-31 03:53

    I had problems with most of these approaches.

    My installation is hosted so I don't have access to the PHP config files and the PHPMyAdmin interface is not displaying the "Remove Database" section mentioned above (under the Operations Tab). The icon in the corner didn't work either.

    What I realised you can do is create a stored procedure to delete your table.

    Go to "Routines", "Add Routine" and create a stored procedure with the single line:

    DROP DATABASE databasename

    When that's created you can execute it and the database will get deleted.

    0 讨论(0)
  • 2021-01-31 03:56

    did you try deleting the database by logging in to mySQL using SSH if you have not already..

    sudo mysql -u yourmysqlusername -p (enter the password when prompted.)

    mysql> SHOW DATABASES; (find your database)

    mysql> USE YOURDATABSETODROP; (CHANGE THE DATABASE)

    mysql> DROP DATABASE YOURDATABSETODROP; (and you are done.)

    0 讨论(0)
  • 2021-01-31 03:56

    Xampp window

    Method 1

    1. Open Xampp
    2. apache -> Config -> phpMyAdmin(config.inc.php) or config.inc.php
    3. Add $cfg['AllowUserDropDatabase'] = true;

    Adding line in config.inc.php

    Method 2

    1. Open C:\xampp\phpMyAdmin\config.inc.php
    2. Add $cfg['AllowUserDropDatabase'] = true;
    0 讨论(0)
  • 2021-01-31 03:56
    1. select the database in phpadmin
    2. click the operations button
    3. show the remove database section
    4. click the Drop the database(DROP). It show the alert box.
    5. click OK.
    0 讨论(0)
  • 2021-01-31 03:58

    if you are using version 4+ then you can simply drop a database just following these steps:

    1. go to mysql admin
    2. click database option (right side of your databases)
    3. here you will get all the databases you have and now click the checkbox at the left side of the databases you want to delete
    4. just the bottom of these databases you can see the option "Drop" so click the drop to delete the database permanently
    0 讨论(0)
提交回复
热议问题