mysql的sql语句日志记录
SET GLOBAL log_output = ‘TABLE’;SET GLOBAL general_log = ‘ON’;
SET GLOBAL log_output = ‘TABLE’;SET GLOBAL general_log = ‘off’;
SELECT * from mysql.general_log ORDER BY event_time DESC;
truncate table mysql.general_log;
2022-11-11 10:28:17
mysql的sql语句日志记录
SET GLOBAL log_output = ‘TABLE’;SET GLOBAL general_log = ‘ON’;
SET GLOBAL log_output = ‘TABLE’;SET GLOBAL general_log = ‘off’;
SELECT * from mysql.general_log ORDER BY event_time DESC;
truncate table mysql.general_log;