MySQL Tip: How To Check, Repair & Optimize All Tables in All Databases MySQL Sugerencia: para comprobar cómo, reparación y optimizar todos los cuadros en todas las bases de datos
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.
Filed under Filed under Company Compañía , Database Base de datos , Enterprise Software Enterprise Software , Headline News Headline News , How To Cómo , MySQL , RDBMS , Tech Note Nota técnica , Web | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | este artículo |
Email this Article Enviar artículo
You may also like to read También puede leer |




May 3rd, 2008 at 4:10 pm 3 de Mayo, 2008 a 4:10 pm
Hi, Hola,
great command! gran comando! But what about this: Pero ¿qué pasa con esto:
Don’t forget to FLUSH TABLES after execution of any of the following - REPAIR TABLE, TRUNCATE TABLE, OPTIMIZE TABLE, or ANALYZE TABLE on tables that are mapped into MERGE table. No se olvide de FLUSH TABLES tras la ejecución de cualquiera de los siguientes - REPAIR TABLE, truncar TABLE, OPTIMIZE TABLE, ANALYZE TABLE o en los cuadros que se ven en la tabla MERGE.
And shouldn´t we also run a ’sort-index’ ? Y no debería también poner en marcha un "tipo de índice '?