mysql 查询时间测试

  • MySQL 的性能-SQL 执行分析(执行时间分析)

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

    2560633-3906db5f964fd0f3.png
    image.png

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


    2560633-186c83f6c38ba493.png
    image.png

猜你喜欢

转载自blog.csdn.net/weixin_34205826/article/details/86822922