Question: ERROR 1194 (HY000): Table 'mytable' is marked as crashed and should be repaired, how do I fix this? 'mytable' is the name of your table.

Error: 1194 SQLSTATE: HY000: means ER_CRASHED_ON_USAGE

 

Answer:

In the mySql command line you should run the following command to repair the table

View source
repair table mytable; 
//Replace mytable with your table name

REPAIR TABLE  repairs a possibly corrupted table. To read more about the REPAIR TABLE command click here.

 

NOTE: If you do not have access to the command line then phpMyAdmin should have a repair table option.