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.
You can follow uploaded images
Then select which database you want to delete
On phpMyAdmin 4.1.9:
database_name > Operations > Remove database
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.
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;
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.
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.