Delete a database in phpMyAdmin

前端 未结 16 928
面向向阳花
面向向阳花 2021-01-31 06:33

By mistake, I have created a duplicate database in the phpMyAdmin page of cPanel. I want to delete this database, but I am not able to find any delete button in the UI.

相关标签:
16条回答
  • 2021-01-31 07:17

    You can follow uploaded images

    enter image description here

    Then select which database you want to delete

    enter image description here

    0 讨论(0)
  • 2021-01-31 07:21

    On phpMyAdmin 4.1.9:

    database_name > Operations > Remove database

    enter image description here

    0 讨论(0)
  • 2021-01-31 07:29

    Taking a queue from michael's answer above, I was unable to find the DROP Database command on my phpMyAdmin console in the localhost.

    Apparantly I was missing a setting. Go to config.inc.php file of the phpMyAdmin folder, and add this:

    $cfg['AllowUserDropDatabase'] = true;

    Save and restart the local server and the command appears inside the console.

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

    Open the Terminal and run

     mysql -u root -p
    

    Password is null or just enter your mysql password

    Ater Just Run This Query

     DROP DATABASE DBname;
    

    If you are using phpmyadmin then just run

     DROP DATABASE DBname;
    
    0 讨论(0)
  • 2021-01-31 07:31

    The delete / drop option in operations is not present in my version.

    Go to CPanel -> MySQLDatabase (icon next to PhPMyAdmin) -> check the DB to be delete -> delete.

    0 讨论(0)
  • 2021-01-31 07:32

    select database on the left side. Then on the right-central top you can find Operations. In that go for remove database (DROP). That's all.

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