mysql 开启sql执行日志

SHOW VARIABLES LIKE 'general%';

set GLOBAL general_log='ON'; --开启本地日志 

 
原文地址:https://www.cnblogs.com/mrma/p/13995206.html