监控mysql执行的sql语句

show global variables like '%general%';
SET GLOBAL general_log = 'ON';

原文地址:https://www.cnblogs.com/beibidewomen/p/10137182.html