-
先执行
show variables like 'profiling'
,查看测试时间是否开启,
如果不记得这个单词,也可以使用模糊查询'%pro%'
如果以没有开启,则需要设置set profiling=1
image.png
-
查看最近执行的每一句 sql 消耗时间
image.png
show profile cpu,block io for query Query_ID(show profiles 里面的值)

先执行 show variables like 'profiling'
,查看测试时间是否开启,
如果不记得这个单词,也可以使用模糊查询 '%pro%'
如果以没有开启,则需要设置 set profiling=1
查看最近执行的每一句 sql 消耗时间
show profile cpu,block io for query Query_ID(show profiles 里面的值)
本文标题:mysql 查询时间测试
本文链接:https://www.haomeiwen.com/subject/yskxsqtx.html
网友评论