SHOW VARIABLES LIKE "general_log%"; -- off 是关闭,如果是on表示已经开启SET GLOBAL general_log = 'ON'; --开启日志监控。set global log_output='table'SELECT * FROM mysql.general_log ORDER BY event_time DESC ROOT执行就可以看到