1.mysql记录所有执行过的SQL

 show variables LIKE '%general_log%' 

原文地址:https://www.cnblogs.com/black-/p/8969282.html