备忘
开启日志记录: SET GLOBAL general_log = 'ON';
将日志输出至系统表: SET GLOBAL log_output = 'TABLE'
查询: SELECT * from mysql.general_log ORDER BY event_time DESC
不用时记得关闭
SET GLOBAL general_log = 'off';