Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the equivalent in MySql for STATISTICS IO?

When I do a query on MSSQL, I can issue these statements to get statistics on time and IO returned with the query.

SET STATISTICS IO ON;
SET STATISTICS TIME ON;

They are a good first look indicator for the performance of the query. Does something like this exist in MySql and how do I enable it ?

like image 896
driis Avatar asked Nov 03 '22 06:11

driis


1 Answers

I am not sure what SET STATISTICS does in MSSQL, but you are probably looking for the SHOW PROFILE and SHOW PROFILES commands.

like image 155
RandomSeed Avatar answered Nov 08 '22 15:11

RandomSeed