日期:2014-05-16  浏览次数:20806 次

MySQL慢查询专题
相关命令:
mysql> show variables like 'slow%';
+---------------------+--------------------------------+
| Variable_name       | Value                          |
+---------------------+--------------------------------+
| slow_launch_time    | 2                              |
| slow_query_log      | OFF                            |
| slow_query_log_file | /var/lib/mysql/mysql1-slow.log |
+---------------------+--------------------------------+
3 rows in set (0.00 sec)