使用SHOW STATUS
MySQL 的SHOW STATUS 命令返回了一些計數器
SHOW STATUS 是一個有用的工具
盡管SHOW STATUS 無法提供基於時間的統計
mysql> FLUSH STATUS;
mysql> SELECT * FROM sakila
[query results omitted]
mysql> SHOW STATUS WHERE Variable_name LIKE
OR Variable_name LIKE
+
| Variable_name | Value |
+
| Created_tmp_disk_tables |
| Created_tmp_files |
| Created_tmp_tables |
| Handler_commit |
| Handler_delete |
| Handler_discover |
| Handler_prepare |
| Handler_read_first |
| Chapter
| Handler_read_key |
| Handler_read_next |
| Handler_read_prev |
| Handler_read_rnd |
| Handler_read_rnd_next |
| Handler_rollback |
| Handler_savepoint |
| Handler_savepoint_rollback |
| Handler_update |
| Handler_write |
+
返回目錄
編輯推薦
ASP
數據倉庫與數據挖掘培訓視頻教程
Oracle索引技術
[
From:http://tw.wingwit.com/Article/program/MySQL/201311/29709.html