Here is a simple command to auto repair, check and optimize all the tables in all databases running on a MySQL server :次に示すのは、単純なコマンドをauto修復、最適化をチェックし、すべてのデータベースのテーブルのすべてのMySQLサーバ上で実行され

mysqlcheck -u root -p --auto-repair --check --optimize --all-databases mysqlcheck - uルート- p -自動車修理-空-最適化-全て-データベース

mysqlcheck is available in MySQL 3.23.38 and later. mysqlcheckは、 MySQLの3.23.38以降で利用可能です。

mysqlcheck uses the SQL statements CHECK TABLE, REPAIR TABLE, ANALYZE TABLE, and OPTIMIZE TABLE in a convenient way for the user. mysqlcheck SQLステートメントを使用してテーブルをチェック、修復、テーブル、分析表、および最適化するためのテーブルにするのに便利になります。 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 running database.それを実行中のデータベースを実行する必要があります。 It is recommended that you kill other incoming queries (like from your website) before running this which makes it a lot faster.殺すことをお勧めします他の着信クエリ(のようなよりお客様のウェブサイト)を実行する前にこのことをずっと速くています。 I simply stop my httpd server before running it.私だけで私のhttpdサーバーを実行する前に停止してください。 You may want to use aを使用するにすることができます Site Unavailableサイトのご利用いただけません message instead so that the MySQL server is left alone. MySQLサーバの代わりにして、メッセージが表示さは左だけです。