mysql 查看日志是否开启日志存放路径
show variables like 'general_log%'; 
设置启用日志:(注意这里的设置是临时的,适合服务不能停止的设置。服务重启需要重新设置)
set global general_log=on;
https://blog.xqlee.com/article/354.html
show variables like 'general_log%'; 
set global general_log=on;
https://blog.xqlee.com/article/354.html
评论