MySQL慢查询日志

//查看慢查询设置
show variables like 'slow%';
show variables like 'long%';
//修改全局配置文件
vi /etc/my.cnf
slow_query_log_file=/mnt/data/mysql/slow_query.log
long_query_time=2

 

posted @ 2015-12-10 16:49  Alexander.Gao  阅读(116)  评论(0)    收藏  举报