How To Delete A Database in phpMyAdmin
How To Delete A Database in phpMyAdmin
Ask Question
Asked 8 years, 8 months ago
Modified 3 months ago
Viewed 473k times
118
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.
Share
Follow
asked Feb 13, 2014 at 10:42
coder
1,76944 gold badges1818 silver badges2323 bronze badges
Add a comment
17 Answers
Sorted by:
Highest score (default)
130
On phpMyAdmin 4.1.9:
Share
Follow
answered Jun 4, 2014 at 10:55
Michal Stefanow
12.1k1111 gold badges6666 silver badges8888 bronze badges
12
For what it's worth - not available within the PHP MyAdmin window I'm getting from my ISP :(
– RedYeti
Feb 18, 2015 at 14:51
1
If it is not in your PHPMyAdmin, you might have another option off your cPannel, "My SQL
Databases". My ISP uses 2 different links for options that are available in PHPMyAdmin on other ISPs
– BillyNair
Mar 2, 2015 at 10:18
1
IMHO, it is only availabe for users with global privilage to drop the database. Otherwise, simply it
wont be there. I checked in local enviornment, IMHO, it might be in production enviornment too.
– Ajeeb.K.P
Jul 20, 2015 at 11:38
1
any reason why they just don't have a 'delete' button in a more intuitive location? Llike the databases
homepage.
– Jon Grah
Mar 10, 2017 at 3:03
1
Why isn't this the accepted answer? The accepted answer is about deleting it in cpanel - NOT about
deleting from phpmyadmin which is what the question asked, and the question I was actually looking
for the answer to. And, this worked by the way. In cpanel for some reason, those databases were not
showing up, my reason for searching for this.
– progammingaddict
Feb 20, 2020 at 0:46
Add a comment
76
After successful login to cPanel, near to the phpMyAdmin icon there is another icon MySQL
Databases; click on that.
In the action column you can find the delete database option click on that to delete your database!
Share
Follow
edited Dec 19, 2016 at 8:25
Christian
22.3k99 gold badges8080 silver badges105105 bronze badges
answered Feb 13, 2014 at 10:58
psanjib
1,23522 gold badges1515 silver badges2424 bronze badges
5
This is outdated. There is no action column in the phpMyAdmin that I'm using... Please update your
answer.
– oldboy
Sep 13, 2017 at 21:13
8
Why assume that everyone uses cPanel? And why give a cPanel answer to a PHPmyAdmin question?
– Mawg says reinstate Monica
Nov 1, 2017 at 12:09
2
@MAwg you are absolutely right, i agree with you. As the use mention on his question that "I have
created a duplicate database in the phpMyAdmin page of cPanel" that why i gave cpanel answer
– psanjib
Apr 25, 2018 at 11:14
Add a comment
30
Sunil Kumar
5,13255 gold badges3131 silver badges3838 bronze badges
answered Jun 3, 2015 at 13:44
user3642940
41144 silver badges44 bronze badges
1
there are no such options on server side and you should quit the phpmyadmin and delete the db entirely
from hosting's panel on server.
– CodeToLife
Jan 27, 2021 at 17:36
Add a comment
19
Taking a queue from michael's answer above, I was unable to find the DROP Database command
on my phpMyAdmin console in the localhost.
$cfg['AllowUserDropDatabase'] = true;
Save and restart the local server and the command appears inside the console.
Share
Follow
edited May 23, 2017 at 12:02
CommunityBot
111 silver badge
answered May 1, 2015 at 18:18
codegasm
65611 gold badge88 silver badges2121 bronze badges
Add a comment
7
You can delete the database in Cpanel.
In Cpanel go to databases and there you will see all created databases and you can delete this
database.
http://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/MySQLDatabases#Delete a
Database
or other wise on live server if user have privileges you can run command in sql tab of
phpmyadmin.
Maz I
3,62622 gold badges2323 silver badges3838 bronze badges
Add a comment
6
You can follow uploaded images
Share
Follow
edited Dec 14, 2017 at 7:33
Petter Friberg
20.8k99 gold badges5959 silver badges105105 bronze badges
answered Dec 14, 2017 at 4:18
user9097004
Add a comment
6
If you want to delete your database from phpmyAdmin or mySQl. Simply go to SQL command
and write command "drop DATABASE databasename;"
Share
Follow
edited Jul 15, 2018 at 21:27
Quentin
877k121121 gold badges11761176 silver badges12891289 bronze badges
answered Jul 12, 2018 at 18:34
Avinash Kumar Singh
71566 silver badges1919 bronze badges
1
there are no drop or delete buttons in my new phpmyadmin. So this answer still the only correct. 2020
y
– CodeToLife
Feb 18, 2020 at 2:57
Add a comment
4
database_name -> Operations -> Remove database -> click on drop the database (DROP)
Share
Follow
answered Mar 7, 2016 at 6:26
Vayodya Tamari
28722 silver badges22 bronze badges
Add a comment
3
There are two ways for delete Database
umutekici
3122 bronze badges
Add a comment
3
Open the Terminal and run
mysql -u root -p
Password is null or just enter your mysql password
Rajneesh Shukla
7991010 silver badges1818 bronze badges
Add a comment
3
1. Connect to your localhost.
2. Open your favorite browser.
3. Make sure your localhost is working.
4. Type in url= localhost.
5. Scroll down click on phpadmin once phpadmin is open.
6. Click on database.
7. Mark check the database you want remove.
8. Click on drop.
If this don't work
Mona Jalal
31.3k6161 gold badges210210 silver badges377377 bronze badges
answered Jan 30, 2016 at 18:01
Edgardasun
5311 silver badge99 bronze badges
Add a comment
2
How to delete a database in phpMyAdmin?
From the Operations tab of the database, look for (and click) the text Drop the database (DROP).
Share
Follow
answered Feb 16, 2014 at 17:03
Isaac Bennetch
11.3k22 gold badges2929 silver badges4040 bronze badges
Add a comment
2
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.
Share
Follow
answered Feb 17, 2015 at 6:20
S K padala
23111 gold badge33 silver badges1616 bronze badges
Add a comment
2
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.
Share
Follow
answered Sep 25, 2016 at 18:51
user2060451
2,49633 gold badges2222 silver badges3131 bronze badges
Add a comment
1
Go to operations tab for the selected database and click "Drop the database (DROP)" to delete it.
Share
Follow
answered Mar 21, 2018 at 10:10
Bilal
51755 silver badges77 bronze badges
Add a comment
0
It will work 100%. Go to your xampp installation directory.
`D:\xampp\phpMyAdmin\libraries\config.default.php`
Steps:
Kaleemullah
31222 silver badges88 bronze badges
Add a comment
Highly active question. Earn 10 reputation (not counting the association bonus) in order to answer this
question. The reputation requirement helps protect this question from spam and non-answer activity.