title: Mysql::Error: Table 'table_name' is marked as crashed and should be repaired
body: <p>I have this error "Mysql::Error: Table 'table_name' is marked as crashed and should be repaired" that is repeated several times, </p>
  
  <p>I know how I solve this problem : to run this from my server's command line:
  mysqlcheck --repair --all-databases..</p>
  
  <p>but I do not know the cause!! </p>
  
  <p>Notes: I develop with ruby on rails and i'm using mysql 5.1.49, table type: MyISAM, table size : between 50 Mo and 500 Mo
  Also there are multi-insert on this tables.</p>
  
  <p>I thought about making a script that repairs the table every night, but i see that this is a bad idea.</p>
  
  <p>My question: is there any configuration to apply on mysql or do you suspect that  there is a problem in the code?
  In fact, every time there is this error, i have to launch the command to repair this table.</p>
  
  <p>Thanks</p>