【MySQL】MySQL 如何查看sql语句执行时间和效率

在这里插入图片描述

1.概述

MySQL如何查看自己执行的SQL花费的时间呢?那就是show profiles

首先看看你有没有开启这个功能

mysql> show variables like "%prof%";
+------------------------+-------+
| Variable_name          | Value |
+------------------------+-------+

猜你喜欢

转载自blog.csdn.net/qq_21383435/article/details/107444967