热门搜索 :
考研考公
您的当前位置:首页正文

mysql 查询时间测试

来源:东饰资讯网
  • 先执行 show variables like 'profiling',查看测试时间是否开启,
    如果不记得这个单词,也可以使用模糊查询 '%pro%'
    如果以没有开启,则需要设置 set profiling=1

    image.png
  • 查看最近执行的每一句 sql 消耗时间


    image.png
show profile cpu,block io for query Query_ID(show profiles 里面的值)
image.png
Top