MySQL 5.5.3 (Milestone 3) 最大亮點是引入 Performance Schema,提供資料庫運行時效能監控數據收集框架。
performance_schemaPERFORMANCE_SCHEMA--performance_schema=ON[mysqld]
performance_schema = ON
# 或啟動時指定
mysqld --performance_schema=ON
SHOW VARIABLES LIKE 'performance_schema';
+--------------------+-------+
| Variable_name | Value |
+--------------------+-------+
| performance_schema | ON |
+--------------------+-------+
SELECT * FROM performance_schema.setup_instruments LIMIT 5;