Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what to do when ' repair table ' query won't work in mysql?

Tags:

mysql

i got this error : "The storage engine for the table doesn't support repair"

when i tried to repair the table using the query repair table tbl_college_master

table is of innodb type, but i dont know y i'm getting this error?

like image 213
M Y T H Avatar asked Jan 04 '10 10:01

M Y T H


2 Answers

See the manual—REPAIR TABLE is only applicable to MyISAM, ARCHIVE and CSV storage engines.

With InnoDB you don't need this anyway, as the storage engine can't go into an inconsistent state unlike MyISAM and others.

like image 199
Joey Avatar answered Nov 01 '22 16:11

Joey


I think you should try mysql repair tool . . . it's a great tool that can repair any type of mysql data or table containing any data. and i am sure that it will definetely repair the table using the query repair table tbl_college_master.

like image 39
mickjsn Avatar answered Nov 01 '22 15:11

mickjsn