I want to know the last query that was fired on mySQL server, or the host it was fired from.
Any better way to do it?
I want to know the last query that was fired on mySQL server, or
Share
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.
Since enabling logging of all queries will kill performance, you can create a proxy and keep the last query there. Or if you can afford changing the application code, alter the DB layer in a way that it stores the last executed query in memory (memcached for example)