MySQL Forums
Forum List  »  Newbie

Re: How can I force a MySQL DB to become corrupted?
Posted by: Shay _Fox
Date: February 05, 2016 03:04PM

Generally you can't back up the databases by copying them from /var/lib/mysql and then copying them back because they get corrupted, you have to use mysqldump instead.
So if you go into one of the folders for the database in /var/lib/mysql, ie /var/lib/mysql/myDB/ and mess with some of the files that ought to do it :-)
So I would recommend copying one of the files, editing a little with a hex editor, and copying it back.

Options: ReplyQuote


Subject
Written By
Posted
Re: How can I force a MySQL DB to become corrupted?
February 05, 2016 03:04PM


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.