Is it possible to write a query that will return only the value of a variable returned by MySQL’s SHOW STATUS? Ideally I want something like:
SELECT `Value` FROM (SHOW STATUS LIKE 'Com_delete')
or something similar.
Is this possible?
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.
If you are using MySQL 5.1 or above, you should be able to get that data from
INFORMATION_SCHEMAlike this for global status:Or if you want the session status instead:
The default for
SHOW STATUSisSESSIONstatus, so the latter query would work as a replacement for that.