Here is a simple command to auto repair, check and optimize all the tables in all databases running on a MySQL server : Aquí es un simple mando a reparación de automóviles, el control y la optimización de todos los cuadros en todas las bases de datos se ejecuta en un servidor MySQL:

mysqlcheck -u root -p --auto-repair --check --optimize --all-databases mysqlcheck-u root-p - auto-reparación - check - optimizar - todas las bases de datos -

mysqlcheck is available in MySQL 3.23.38 and later. mysqlcheck está disponible en MySQL 3.23.38 y posteriores.

mysqlcheck uses the SQL statements CHECK TABLE, REPAIR TABLE, ANALYZE TABLE, and OPTIMIZE TABLE in a convenient way for the user. mysqlcheck utiliza el SQL CHECK TABLE, REPAIR TABLE, ANALYZE TABLE, OPTIMIZE TABLE y en una manera conveniente para el usuario. It determines which statements to use for the operation you want to perform, and then sends the statements to the server to be executed. Se determina que las declaraciones de su uso en la operación que desea llevar a cabo y, a continuación, envía las declaraciones al servidor para ser ejecutado. The exact operations are determined by the underlying storage engine used. El lugar exacto de operaciones se determinarán por el motor de almacenamiento subyacente utilizado.

You must execute it on running database. Usted debe ejecutar en funcionamiento la base de datos. It is recommended that you kill other incoming queries (like from your website) before running this which makes it a lot faster. Se recomienda que usted mata a las otras consultas (al igual que de su sitio web) antes de ejecutar este que hace que sea mucho más rápido. I simply stop my httpd server before running it. Simplemente detener httpd mi servidor antes de ejecutar. You may want to use a Si lo desea, puede utilizar un Site Unavailable Sitio No disponible message instead so that the MySQL server is left alone. mensaje en lugar de modo que el servidor MySQL se queda sólo.