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.
ERROR 144 - Table './extas_d47727/xzclf_ads' is marked as crashed and last (automatic?) repair failed
What can I do to repair it?
I needed to add USE_FRM to the repair statement to make it work.
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".
If it gives you permission denial while moving to /var/lib/mysql then use the following solution
Try running the following query:
I had the same issue and it solved me the problem.
Go to
data_dir
and remove theYour_table.TMP
file after repairing<Your_table>
table.I got
myisamchk: error: myisam_sort_buffer_size is too small
as error.The solution