Is there any query/way to show the last queries executed on ALL servers?
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.
For those blessed with MySQL >= 5.1.12, you can control this option globally at runtime:
SET GLOBAL log_output = 'TABLE';SET GLOBAL general_log = 'ON';mysql.general_logIf you prefer to output to a file instead of a table:
SET GLOBAL log_output = 'FILE';the default.SET GLOBAL general_log_file = '/path/to/your/logfile.log';SET GLOBAL general_log = 'ON';I prefer this method to editing .cnf files because:
my.cnffile and potentially permanently turning on logging/var/log /var/data/log/opt /home/mysql_savior/varFor more information, see MySQL 5.1 Reference Manual – Server System Variables – general_log