MySQL Tip: How To Check, Repair & Optimize All Tables in All Databases MySQLのヒント:を確認する方法、修復&最適化がすべてのテーブルのすべてのデータベース
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サーバの代わりにして、メッセージが表示さは左だけです。
Filed under提出されて Company会社 , 、 Databaseデータベース , 、 Enterprise Softwareエンタープライズソフトウェア , 、 Headline Newsニュースの見出し , 、 How Toどのように , 、 MySQL MySQLの , 、 RDBMS RDBMSのより多くの , 、 Tech Note技術のノート , 、 Webウェブ | |
| |
RSS 2.0 RSS 2.0を | |
Trackbackトラックバック this Article |この記事|
Email this Article電子メールこの記事
You may also like to readを読むようにすることも可能 |




May 3rd, 2008 at 4:10 pm 2008年5月3日4:10 pmの
Hi,やあ、
great command!素晴らしいコマンド! But what about this:しかし、これは何について:
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.テーブルをフラッシュすることを忘れないで任意の実行をした後には、次の-修復の表で、切り捨てるの表で、テーブルを最適化するか、または分析表をテーブルには、 M ERGEテーブルにマップされます。
And shouldn´t we also run a ’sort-index’ ?また、実行する必要はありません'の並べ替え、インデックスに登録する'ですか?