I'm looking for this information when executing queries:
# Query_time: 11.639269 Lock_time: 0.000192 Rows_sent: 2 Rows_examined:
6509098
How can I get this from the command line?
I'm looking for this information when executing queries:
# Query_time: 11.639269 Lock_time: 0.000192 Rows_sent: 2 Rows_examined:
6509098
How can I get this from the command line?
The only thing I can think of is the quite convoluted combination of
EXPLAIN ...
SET profile=1;
, SELECT
SHOW PROFILE ALL FOR QUERY <id>\G;
If someone can come up with a better method I'd very much welcome it (although the calculations could be done in a stored procedure of course).