I recently created a ajax based instant messaging application and after running for a while I got an error [table] is marked as crashed and should be repaired. How could this have happened and how do I go about preventing it happening again?
I recently created a ajax based instant messaging application and after running for a
Share
This most of times happen on a crash of MySQL Server while it was writing on the table. You should try to run
CHECK TABLE <databasename>.<tablename>, which will check the content of the table and ultimately let you know whether it’s actually broken or not… Then you may need to runREPAIR TABLE <databasename>.<tablename>. You may also want to read a bit what’s on that page.If the table uses the MyISAM engine, you may as well use the myisamchk tool from the MySQL distribution (in which case I reckon you should refer back to that page).