CHECK TABLE, REPAIR TABLE, ANALYZE TABLE, and OPTIMIZE TABLE - Mysql

by Nirmala 2009-03-03 19:10:38

Hi...

mysqlcheck command is used for check the SQL statements CHECK TABLE, REPAIR TABLE, ANALYZE TABLE, and OPTIMIZE TABLE in a convenient way for the user. It determines which statements to use for the operation you want to perform, and then sends the statements to the server to be executed.

To check the tables for errors use the below command
#mysqlcheck -c test


To optimize the tables use the below command
#mysqlcheck -o test

To perform a repair that can fix almost anything except unique keys that are not unique. use the below command
#mysqlcheck -r test


To analyse the table use the below command
#mysqlcheck -a test


test -> databasename

Tagged in:

1817
like
1
dislike
0
mail
flag

You must LOGIN to add comments