1、进入navicat选择数据库,点击查询按钮,然后选择新建查询。
3、把日志状态设置为打开。打开:SET GLOBAL general_log = 'ON';关闭:SET GLOBAL general_log = 'OFF';