1、查看日志是否开启:
show variables like 'general_log'; -- 查看日志是否开启
2、开启日志监控:
set global general_log=on; -- 开启日志功能