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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The only thing I can think of is the quite convoluted combination of
EXPLAIN ...SET profile=1;,SELECTSHOW 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).