Does the command line client of mysql allow me to listen to current queries?
So i would not need to turn on logging and can check the queries for the time, i am interested to it temporarily.
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.
Assuming you are using MySQL version 5.1.16 or newer, you can temporarily enable the general query log and have it log to a table instead of a file. Then you can select from that table to get the latest query.
Here’s an example: