Is there any query/way to show the last queries executed on ALL servers?
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.cnf file 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