I want to simulate an error for a table so that CHECK TABLE will fail. Is there a way to simulate it so that CHECK TABLE on the table will fail ?
|
feedback
|
|
WARNING: Before doing this, make sure you have a good backup, as you will lose data. Now is probably a good time to make sure you have You can induce a corrupt table by shutting down MySQL, opening up the database file in an editor, changing/deleting a bunch of stuff, saving the file, then re-starting MySQL. If you're using MyISAM tables, then just edit I just tested this with a MyISAM table:
| |||||
feedback
|