msql how to view the latest and all logs of all queries
if writing to the database, then
SET global general_log = 1;
SET global log_output = 'table';
select * from mysql.general_log
or
if to a file
SET global general_log = 1;
SET GLOBAL log_output = "FILE"
SET GLOBAL general_log_file = "/path/to/your/logfile.log"
Comments