There is only one truth. It is the source.

Enable query logging to a table in MySQL

October 15, 2015

Tags: mysql

This is super slick.

SET GLOBAL general_log = 'ON';
SET GLOBAL log_output = 'TABLE';
SELECT * FROM mysql.general_log;