How can I force a MySQL table to become corrupted?
Posted
by Rory McCann
on Server Fault
See other posts from Server Fault
or by Rory McCann
Published on 2009-08-12T15:44:41Z
Indexed on
2010/03/17
10:31 UTC
Read the original article
Hit count: 499
I have written a simple Nagios plugin that calls mysqlcheck (which checks for corrupted tables) and will give a warning if any are corrupt.
However none of my tables are corrupt now. So I'm not 100% sure that my plugin is working fine. I have a dev server that's not misson critical. How can I force one (or any) of the tables there to be corrupt so that I can test my nagios alert?
For the record the server is Ubuntu Dapper and the mysql is version 5.0
© Server Fault or respective owner