phpmyadmin enable drop database statement

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

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

    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

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

    If this happened on a MAC, the chances are you are not running within an administrator's account; you don't have permission to delete the directory.

    1. In your finder menu bar click "go" and type the following: usr/local/mysql/data
    2. Select/delete the directory with the same database you want to drop - you will likely get the dialog asking for the admin username and password to continue.
    3. After you enter the admin credentials, the directory will be gone. Restart your session with the database and you will be good to go.

    Hope this helps

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

    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.

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

    PhpMyAdmin throws error “DROP DATABASE” statement is disabled”. “DROP” tab is missing in PhpMyadmin Home page. To Enable above tab in PhpMyAdmin follow below procedure.

    1. Go to XAMPP directory—–>PhpMyAdmin—–>libraries/ folder.

    2. Open/Edit file with name “config.default.php”

    3. Find $cfg['AllowUserDropDatabase']

    4. You will find it’s value is ‘False’, Make it “True” and you’re done.

    5. Refresh PhpMyAdmin Page or Restart MySql server and then open PhpMyAdmin.

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

    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

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