Mysql-慢查询排查

1.开启慢日志

 

2.使用show full processlist抓出慢查询语句

 

3.使用explain分析语句

 

4. set global profiling = ON

posted @ 2018-09-28 23:02  dingkailinux  阅读(961)  评论(0编辑  收藏  举报