Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>When it comes to repairing and checking tables, MySQL offers two options:</p> <ol> <li>The MySQL distribution ships with a tool called "<a href="http://dev.mysql.com/doc/refman/5.0/en/myisamchk.html" rel="nofollow">myisamchk</a>," designed specifically to check and repair MyISAM tables (the default table type used by MySQL). This tool can scan your databases, identify problems, optimize tables for faster lookup, and optionally repair corrupted tables. The myisamchk tool is invoked from the command line.</li> <li><p>In addition to the tool above, MySQL also allows you check and repair tables using SQL commands. The CHECK TABLE, <a href="http://dev.mysql.com/doc/refman/5.1/en/repair-table.html" rel="nofollow">REPAIR TABLE</a>, and OPTIMIZE TABLE commands can be used on a running MySQL server and need to be entered through a MySQL client.</p> <blockquote> <p>Eg: REPAIR [NO_WRITE_TO_BINLOG | LOCAL] TABLE tbl_name [, tbl_name] ... [QUICK] [EXTENDED] [USE_FRM]</p> </blockquote></li> </ol> <p>Most of the time, it's preferable to use myisamchk because it is significantly faster than using SQL commands.</p> <p>Concerning the "auto" part of the repairing, I suggest not to make a habit from repairing tables. Sounds to me like you'r looking for a pump to remove water from a leak. Would the obvious thing not be to fix the leak and cause of the problem?</p> <p>Remove some memory heavy functions or upgrade your server. Relying on a script or something else to auto-repair corrupted tables is a bad idea.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload