![]() |
||
| Home| Download |Features |WebTuna Analytics |Knowledge Base |Buy | ||
How to Check, Repair and Optimize MySQL TablesThe Repair Table command can be used to repair a corrupted MyISAM table. http://dev.mysql.com/doc/refman/5.0/en/repair-table.html Here is a simple command to auto repair, check and optimize all the tables in all databases running on a MySQL server: mysqlcheck -u root -p --auto-repair --check --optimize --all-databases mysqlcheck uses the SQL statements CHECK TABLE, REPAIR TABLE, ANALYZE TABLE, and OPTIMIZE TABLE in a quick and easy way. It determines which statements to use for the operation you want to perform, and then sends the statements to the server to be executed. The exact operations are determined by the underlying storage engine used. You must execute it on a running database. It is recommended that you kill other incoming queries (like from your website) before running this which makes it a lot faster. |
||
|
Copyright ©2010 DBTuna. All rights reserved. |
||