查看MySql最近执行sql脚本
-- 查看最近执行sql脚本
select a.*,convert(argument using utf8) from mysql.general_log a order by event_time desc;
show variables like '%general_log%'
set GLOBAL general_log=on;-- 开启日志
set GLOBAL log_output='table';
set GLOBAL general_log=off;-- 关闭日志
标签:set,log,查看,MySql,general,sql,GLOBAL From: https://www.cnblogs.com/microsoft-xin/p/16739116.html