2011-02-15 6 views
2
Slow_queries 11 
Select_full_join 13 k 
Handler_read_next 203 k 
Handler_read_rnd_next 5,174 M 
Created_tmp_disk_tables 53 k 
Opened_tables 59 k 

これは私のmysqlステータスで見つかった赤いフラグ付きの値です...私は独学の開発者ですので、私はそれを修正する方法がわかりません。 phpmyadminの中で与えられた説明は常に私には明確ではない...MySqlパフォーマンス医者:誰かが私のためにこの値を翻訳できますか?

注:私のウェブサイトは、ステージングOS上でまだ何のWebトラフィックはありません私のテスト以外にあなたがあなたのMySQLを最適化するために必要な

おかげ

答えて

1

クエリ。遅いクエリを見つけるには、遅いクエリを記録する必要があります。 mysql設定ファイルmy.cnfから有効にすることができます

ヒント:explainを使用して、あなたのクエリでMySQLが何をしているかを教えてください。ここ

はphpmyadminの状態から上記の値の意味は次のとおりです。

Slow_queries 11 : "The number of queries that have taken more than long_query_time seconds"

Select_full_join : "The number of joins that do not use indexes. If this value is not 0, you should carefully check the indexes of your tables.

Handler_read_next "The number of requests to read the next row in key order. This is incremented if you are querying an index column with a range constraint or if you are doing an index scan. "

Handler_read_rnd_next : "The number of requests to read the next row in the data file. This is high if you are doing a lot of table scans. Generally this suggests that your tables are not properly indexed or that your queries are not written to take advantage of the indexes you have. "

Created_tmp_disk_tables : "The number of temporary tables on disk created automatically by the server while executing statements. If Created_tmp_disk_tables is big, you may want to increase the tmp_table_size value to cause temporary tables to be memory-based instead of disk-based. "

Opened_tables : "The number of tables that have been opened. If opened tables is big, your table cache value is probably too small. "

関連する問題