美文网首页
mysql 查询时间测试

mysql 查询时间测试

作者: 云龙789 | 来源:发表于2019-01-29 13:19 被阅读3次
  • MySQL 的性能-SQL 执行分析(执行时间分析)

  • 先执行 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

相关文章

网友评论

      本文标题:mysql 查询时间测试

      本文链接:https://www.haomeiwen.com/subject/yskxsqtx.html