如何查看 mqsql中的sql的执行时间的长短

SHOW VARIABLES LIKE "%pro%";  //  查看profile是不是打开的  ON 打开  off 关闭

SET profiling = 1;    // 开启 profiles 

执行sql     如:SELECT COUNT(createtime) FROM  who_user_function;

show  profiles; // 查看该sql的执行时间

猜你喜欢

转载自blog.csdn.net/qq_37469931/article/details/83415150