Recover dropped database

 
Thread Tools Search this Thread
Operating Systems Linux SuSE Recover dropped database
# 1  
Old 04-29-2009
Recover dropped database

I have deleted a database. I restored it again with a backup.
Now we lost some data of two days.
Is it possible to restore this lost data?
# 2  
Old 04-29-2009
What database? What version? How much do you know about the database? How long until someone notices and finds out it was you?
# 3  
Old 04-29-2009
Quote:
Originally Posted by pludi
What database? What version? How much do you know about the database? How long until someone notices and finds out it was you?
MySQL database
I already reported it so everyone is informed.
# 4  
Old 04-29-2009
Since you restored from a backup, I presume that was the last full backup? In other words, if you had a full backup from last night, it seems you would have chosen that. Then you would have only lost today's work.

So, do you have a database transaction log file? Or an incremental backup from last night?

If you provide more information, someone might be able to help. Or you might answer your own question. However, if you don't have the answers, and don't have a transaction log, then it's likely that you've simply lost the data (you're not running zfs snapshots or a NetApp with snapshots are you?).
# 5  
Old 04-29-2009
The transactionlog option was not enabled. There also wasn't a backup from last night. The only thing I had was the backup from two days ago. So I was lucky with that. But isn't there a way to recover the data? It is still on the disk isn't it?

Last edited by Eastme; 04-29-2009 at 09:34 PM..
# 6  
Old 04-29-2009
OK. So we know (and you know) what you are up against. It may or may not still be on disk. The system is live. The more it is used, and the less free space there is on the system, the more likely that the blocks will get re-used and the data over-written. Time is of the essence, and you have already lost too much time.

I haven't had to do the kind of recovery you are talking about. So someone else will have to give you some direction on this. The advice I know is that faced with such a situation, you should immediately stop using the system. Don't do anything until you have booted it off a CD with the recovery software or put the drive in another system where you have the recovery software. It seems you are unable to do that. Perhaps you can do something like dd the whole drive to another drive. Maybe an external mounted drive by firewire or usb? Then you may have a chance of recovering from that drive.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Records not dropped from UNIX Script

Hi All, As per my biz requirement, I need to drop the partition from our PROD table based on the retention period. Hence I have written the script and called the drop partition procedure within the script. The procedure is working fine and droped the partition from the table when I execute... (4 Replies)
Discussion started by: suresh_target
4 Replies

2. UNIX for Advanced & Expert Users

Find User who dropped table in teradata DB

HI Team Is there a way to track which user dropped the table in Teradata ? Please share the query or approach . Thanks (0 Replies)
Discussion started by: Perlbaby
0 Replies

3. Solaris

Recover Solaris 11 pkg database

Hi, I was messing with pkgsrc and wanted to start fresh so I manually deleted the /var/pkg directory on Solaris 11 :eek: (of course I was supposed to delete the /var/db folder instead)... Anyways... I've basically bricked the Solaris11 Package Manager. Do you know if there is any way to... (1 Reply)
Discussion started by: testers1717
1 Replies

4. UNIX for Dummies Questions & Answers

MySQL Database Missing on UNIX server. Possible to recover?

My dedicated server is VERY old (running Apache/1.3.37 (Unix) PHP/4.4.4 FrontPage/5.0.2.2510). We have a script that runs and manages our customer database. Early in the morning last Friday, it was working fine and processed data as usual. Later in the day, we got this error: Cannot... (2 Replies)
Discussion started by: SurfMe69
2 Replies

5. News, Links, Events and Announcements

MySQL dropped in favor of MariaDB

Fedora and openSUSE will replace MySQL with MariaDB: Oracle who? Fedora & openSUSE will replace MySQL with MariaDB | ZDNet The article also has a comment that Chakra is planning on doing the same. No doubt the Fedora based distributions are planning to do the same. (7 Replies)
Discussion started by: figaro
7 Replies

6. Shell Programming and Scripting

CRON Job to copy database and replace existing database

I have a reseller account with hostgator, which means i have WHM and Cpanel. I have set up a staging environment for one of my wordpress installations (client website), which is essentially sitting at staging.domain.com (live site is at domain.com). The staging website is a complete copy of the... (1 Reply)
Discussion started by: nzrobert
1 Replies

7. Ubuntu

System chrashe , dropped into Busybox

This is the mistake that i've done : First of all go to /etc/apt/sources.list folder from terminal or using file manager ... than copy the content of sources.list in to your adequate source.list. Create a file named sources.list.bt and paste the same content In the end open the... (0 Replies)
Discussion started by: dud3
0 Replies

8. UNIX for Dummies Questions & Answers

are dropped packets a sign of network problem?

in a xen environment , i see a lot op dropped packets via netstat -i Is this a sign of network problems, or is it normal to see this kind of numbers? i'm not sure how to interprete the data. is this normal, bad, critical. What are your stats on this? I guess i have a xen issue of some sort,... (1 Reply)
Discussion started by: progressdll
1 Replies
Login or Register to Ask a Question