Mysql开启慢查询命令

SET GLOBAL slow_query_log=1;

查询:

SHOW VARIABLES LIKE '%slow_query_log%';

结果:

原文地址:https://www.cnblogs.com/penghq/p/10735089.html