Show profile

1、mysql用来分析当前会话中执行的资源消耗情况,可用于SQL的调优测量。 2、默认情况下是关闭的,并保存最近15次的运行结果 3、分析步骤 (1)查看mysql版本是否支持 show variables like 'profiling', 若开启执行 set profiling=on (2)查看结果:show profiles; (3) 诊断sql,show profile cpu,block
相关文章
相关标签/搜索