tags:

views:

95

answers:

1

Out of blue moon, all of sudden, 1 of my database is crashed. This is not the first time, last time I use the "repair table" command and was lucky able to fix it. But it happens again, same table, same error, same solution.

Error:
1194: Table 'users' is marked as crashed and should be repaired

Do I need to repair my tables every day/week/month? Is there a permanent solution for "table-crashing" problem? Its really scary!!! Please help

+1  A: 

This shouldn't happen normally, if your tables are crashing it means something is wrong with your system. Likely a bad disk or bad DRAM (or one of lots of unlikely things, like bad pci->sata bridge, etc...). If you have another system around, try migrating to that system and see if your errors continue.

You do have another equivalent system around, right? In case the primary DB crashes hard, and you need to restore a backup ASAP?

I suppose it could also be a bug in mysql, make sure the version you are using doesn't have known bugs.

Keith Randall