MySQL Forums
Forum List  »  Newbie

Re: How can I force a MySQL DB to become corrupted?
Posted by: Shay _Fox
Date: February 10, 2016 12:56PM

Phillip Ward Wrote:
-------------------------------------------------------
> Why on Earth would you want to do this?
> "Teach-Yourself Database Forensic Examination in
> one really, really uncomfortable lesson"?
>
> Anyway ...
>
> Define "corrupted".
>
> If you want physical corruption - bad bytes
> at the file level that MySQL probably won't be
> able to make sense of and may well crash,
> unrecoverably, in a heap, then just edit any data
> file in Notepad and save it.
> That should be pretty catastrophic.
>
> If you want logical corruption - records
> that don't relate properly to other records,
> inconsistencies between tables - then you need to
> fire off update and delete statements within the
> database (although the schema definition will
> often prevent you from doing so).
>
> Regards, Phill W.

Well said Pill. Thanks for sharing the info.

Options: ReplyQuote


Subject
Written By
Posted
Re: How can I force a MySQL DB to become corrupted?
February 10, 2016 12:56PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.