How do i recover a dropped database in phpmyadmin?

I accidently deleted the whole database when I should just delete one table in PHPMyAdmin. Is there a way of retrieving the database?

asked Apr 9, 2011 at 15:44

How do i recover a dropped database in phpmyadmin?

There are two ways:

  • Have a working backup of the system, and restore the files from it.
  • An undelete tool might help, if you deleted the db very recently (and ideally, if you unplugged the computer right afterward).

As for doing it with MySQL, though...on all systems i'm aware of, no. MySQL tables are files in the server's data directory, and dropping a table deletes those files. Once they're gone, they're gone, and only the methods above can get them back. A database is a directory of those files, and dropping it deletes the whole directory.

answered Apr 9, 2011 at 15:50

cHaocHao

83.1k20 gold badges145 silver badges171 bronze badges

Same thing here :-(
I closed xampp (V3.2.1) found the xampp\mysql\ folder, right-clicked and selected Restore previous version, select recent restore. When this finished I opened xampp and the missing database was back with the information dated as per the restore date. Not ideal but better than no database :-)

answered Jul 31, 2014 at 13:09

Same thing happened with me, found a easy solution. First make a command line access to the database using the mysql.exe file present in xampp/php/bin folder. Delete the phpmyadmin database. Then, just import the create_tables.sql file to the phpmyadmin database. This solved my problem.

Let me know if you face any problem using this.

thanks.

How do i recover a dropped database in phpmyadmin?

MaYaNk

3721 gold badge6 silver badges15 bronze badges

answered Mar 6, 2014 at 9:23

I accidentally dropped my MySQL database in PhpMyAdmin, is there a possibility to recover my database?

asked Dec 9, 2009 at 15:28

3

Sure. You can restore it from your backup.

Otherwise, you're out of luck, unless your ISP has a backup that can restore it. You'll need to talk to them about that, though... They may charge you for doing so.

answered Dec 9, 2009 at 15:30

Ken WhiteKen White

1911 silver badge5 bronze badges

I just accidentally dropped my database on my local wamp server. It was lost and I felt all hope was gone, but immediately I searched on the internet to find solution, but I did not get. However, I recovered it and here is how I did it. I went to the folder where phpmyadmin stores the raw data of my databases in my case "C:\wamp\bin\mysql\mysql5.1.32\data" then I noticed that the folder for my dropped database was not there, which means it is gone forever (not really). What I did next was to right-click inside the "data" folder window and I selected "properties" and clicked the "Previous Versions" tab. In that tab there was a list of previous versions with dates, so I selected the one I wanted, in my case I selected the previous version of the "data" folder which was 2 hours earlier. then I clicked "Restore" then it restored back the folder. During the process you might get a pop-up that says restore can not complete as the folder is used by another process, don't worry, just go and stop the local server service and click "try again". I hope this helps someone. then copy and paste the folder to the data directory and that is it

answered Jul 20, 2011 at 8:34

MarkMark

591 silver badge1 bronze badge

3

If you have a backup of the DB, or if your PC / Server has some kind of file system snapshot like DFS or Volume Shadow Copy (found in Vista), then yes there is some hope.

Otherwise, nope. Your DB is gone.

answered Dec 9, 2009 at 15:30

1

nope, when drop at table, you drop it from a 10 miles high cliff.

I hope for you you've made a back-up or make use of an other back-up solution that automatic backs it up every day or so.

answered Dec 9, 2009 at 15:34

Short answer: no.

answered Dec 9, 2009 at 15:30

motemote

1114 bronze badges

Can I restore deleted database in phpMyAdmin?

Restore the database in MySQL using phpMyAdmin If you got used to working with phpMyAdmin, you can easily recover the deleted table or copy a MySQL database to another server. For MySQL database backup and restoration, you need to use the Export and Import tools respectively.

How do I restore a database in phpMyAdmin?

Import or restore a database or table.
Log into phpMyAdmin through your cPanel dashboard..
Select the destination database on the left pane..
Click on the Import tab in the top center pane..
Check or uncheck the boxes for 'Partial import' and 'Other options'..
Click the Go button at the bottom to import the database..

Can a dropped database be restored?

Even if you accidentally drop a database or someone drops your database as part of security attack, Managed Instance will enable you to easily recover the dropped database.

How do I get back a dropped database in MySQL?

The first step to recover deleted data from a MySQL database To prevent any data from being damaged, first, place it on a new server. Here you can safely view the desired rows, columns, etc. You can see that the backup will have what you need, then take and copy this information to the old server.