1.查看是否开启
show variables where Variable_name="general_log";
2.开启
set global general_log=on;
3.查看日志路径
show variables where Variable_name="general_log_file";
4.关闭
set global general_log=off;
Mysql开启日志查询
最新推荐文章于 2024-04-11 12:20:21 发布