Mysql 调优2个语句

一、explain 语句

 

查看语句的执行计划

 

二、查看具体每一步耗时

 1set profiling=1;
2、执行SQL
3、show profiles; 获取2执行SQL的query_id
4、show profile for query 【3步获取的query_id】 

 

posted @ 2017-09-12 09:44  忙碌在路上  阅读(173)  评论(0编辑  收藏  举报