启用sql日志

SHOW VARIABLES LIKE "general_log%"; -- 查询是否启用日志

SET GLOBAL general_log = 'ON';  -- 设置启用

SET GLOBAL sql_log_off = 'ON';  -- 设置关闭

以上设置重启mysql后失效

 

posted @ 2019-08-20 15:15  唯起  阅读(183)  评论(0编辑  收藏  举报