首先看是否开启了日志



show global variables like '%general%';


  



set global general_log = on; // 打开  
set global general_log = off; // 关闭