mysql慢查询日志
2016-02-26 21:18
609 查看
1.查看mysql是否开启了慢查询日志
mysql>show variables like "%slow%";
2.开启mysql慢查询日志:
vi /etc/my.cnf
保存my.cnf后,重启mysql服务.