先通过一段sql语句来介绍一下:

1.select * from test 

mysql profiles 查看sql语句执行的性能

2.查询过后,执行show profiles

mysql profiles 查看sql语句执行的性能

3.如果再看比较详细的执行可以 通过 show profile for query 3; 注:3这个数字为query_id

mysql profiles 查看sql语句执行的性能


相关文章: