från kommandoraden kan du använda: mysqlcheck -A --auto-repair https://dev.mysql.com/doc/refman/5.0 /en/mysqlcheck.html