I was repairing this table suddenly server hanged and when I returned back all tables are ok but this one showing \'in use\' and when I try to repair it doesn\'t proceed.
<This is a 100% solution. I tried it myself.
myisamchk -r -v -f --sort_buffer_size=128M --key_buffer_size=128M /var/lib/mysql/databasename/tabloname
I tried the options in the existing answers, mainly the one marked correct which did not work in my scenario. However, what did work was using phpMyAdmin. Select the database and then select the table, from the bottom drop down menu select "Repair table".
Go to data_dir
and remove the Your_table.TMP
file after repairing <Your_table>
table.