Was just reviewing my backup log and noticed the following error…
data: mysqldump: Couldn't execute 'show create table
cel': Table './asteriskcdrdb/cel' is marked as crashed and should be repaired (145)
so I tried…
[[email protected] ~]# mysql -b -u root -D asteriskcdrdb -e "REPAIR TABLE cdr" -u root
+-------------------+--------+----------+----------+
| Table | Op | Msg_type | Msg_text |
+-------------------+--------+----------+----------+
| asteriskcdrdb.cdr | repair | status | OK |
+-------------------+--------+----------+----------+
[[email protected] ~]# mysqlcheck -u root --check asteriskcdrdb asteriskcdrdb.cdr OK
asteriskcdrdb.cel
warning : Table is marked as crashed
warning : 3 clients are using or havent closed the table properly
error : Size of datafile is: 321835008 Should be: 321835120
error : Corrupt
Did I miss something doing the repair that it’s still showing corrupt?
Thanks!