I have been working on large databases for the last few years. This includes areas such as story archives, data warehouses, high-end OLTP databases, all with quite a large amount of data. The smaller ones are usuall in the range of 10GB or more.
Well, I came across a situation this week that was a bit of a surprise. A business had somehow lost all the data out of one table in the database. The first surprise was that it appeared to happen at 04:00am according to the binlogs. However, nobody logs on then, there was no evidence of intrusion (behind a secure firewall as well), and their intranet showed no activity for that time either? So where the DELETE FROM tablename; command came from is still a bit of a mystery.
The second surprise was trying to fix up the problem. I was looking at recovering from backup and running a point-in-time-recovery process with the binlogs to get it back to the updated state. Now, there were only 2 tables …
[Read more]