views:

19

answers:

1

I'm almost certain about the answer, but the situation is so critical that I have to ask this question even though I'm %99 sure about the answer.

Someone in our office made a backup of a MySQL database and he restored it on a wrong destination database overwriting everything on that destination (The schema of both databases were the same). According to the structure of the MySQL backup files I know that the restore operation drops all the tables first and then creates them and fills them up with the backed up data. The question is does the restore module keeps the old data anywhere? Is there anyway of retrieving any of the old data? (logs?.. etc.)

+1  A: 

Only if you have replicated slaves, or you used to, and have binary logs. Even then you'd need an old copy of the database you can restore, and to configure replication again.

Andy
I would think that they would not have old enough logs unless they just added the old data say within the last 7 days.
Clutch
Surprisingly there are no backups on that server. I also found some articles talking about restoring the data files in case the tables were MyISAM. But I think none of them really work in such a severe situation