让Mysql为我们记录执行流程 我们可以开启profiling,让mysql为我们记录sql语句的执行流程 查看profiling参数 shell > select @@profiling; 进行更改
我们可以开启profiling,让mysql为我们记录sql语句的执行流程
查看profiling参数
shell > select @@profiling;
进行更改
shell > set profiling = 1;
执行语句
select * from employees limit 100;
查看该语句执行流程
show profile;
分别是
请注意上述命令与下面的不同
show profiles;
显示完成每条指令的所花费的时间。上面show profile
是对一条指令每个阶段花费时间的统计,这个统计的所有时间的总和就等于show profiles
中对应命令的Duration。
--结束END--
本文标题: 让MySQL为我们记录执行流程 - G
本文链接: https://www.lsjlt.com/news/6821.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-16
2024-05-16
2024-05-16
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0