阅读721 返回首页    go 阿里云 go 技术社区[云栖]


mysql用profile分析查询计划

1、打开profile,默认是关闭的

   

    >set profiling = 1


2、执行要分析的sql语句


   >select * from user where name = 'aaa';


3、查看sql语句执行步骤


  >show profiles

  >show profile for query 2

最后更新:2017-11-08 08:34:18

  上一篇:go  innodb monitor
  下一篇:go  memcache和redis对比