lunes, 17 de septiembre de 2012

MySQL: ERROR 1194 (HY000)

Estaba realizando unos trabajos con MySQL y de prontono podia hacer consultas, me salia el siguiente mensaje:


ERROR 1194 (HY000): Table 'cdr' is marked as crashed and should be repaired

Navegando encontre la siguiente sentencia que me permitio repararlo y seguir trabajando, ademas muestra la causa del "error"


# mysqlcheck --auto-repair asteriskcdrdb cdr -p
Enter password: 
asteriskcdrdb.cdr
warning  : 15 clients are using or haven't closed the table properly
error    : Wrong bytesec: 0-0-0 at linkstart: 781414504
error    : Corrupt

Repairing tables
asteriskcdrdb.cdr
info     : Wrong bytesec:   0-  0-  0 at 781414016; Skipped
info     : Wrong bytesec:   0-  0-  0 at 781450184; Skipped
info     : Wrong bytesec:   0-  0-  0 at 781451280; Skipped
warning  : Number of rows changed from 4767817 to 4767552
status   : OK


No hay comentarios:

Publicar un comentario