Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Executed drop table accidently

Need a help badly.

I accidentally dropped one table from my database. There is a backup of the db but it is of 15 days before.

Can someone tell me if I can get my table data by any means?

Thanks

like image 322
Pramod Gupta Avatar asked Oct 31 '13 14:10

Pramod Gupta


People also ask

Can you undo a drop table?

The . undo drop table command reverts a drop table operation to a specific database version. The command must be executed with database context.

How do I undo a drop table in mysql?

Once a table is dropped, it is gone. Without a backup you won't get it back. So, no there's no way to undo the drop statement.


2 Answers

Before you do anything, make a copy of your current data and tran logs.

I never had this problem myself, by I know some people that swear by the ApexSql recovery tools -- not cheap, but can be worth it if other methods don't work for you.

like image 137
Gary Walker Avatar answered Oct 10 '22 09:10

Gary Walker


Speaking of DROP table and ApexSQL tools, you can reffer to the 4 techniques for recovering lost tables due to DROP Table operation online article for more details and methods that can be used

Disclaimer: I work as a Product Support Engineer at ApexSQL

like image 23
Ivan Stankovic Avatar answered Oct 10 '22 10:10

Ivan Stankovic