查看进程(事物)
show PROCESSLIST
查看正在运行的SQL
show full processlist;
查看最近50条慢查询记录
SELECT * FROM mysql.slow_log ORDER BY start_time DESC LIMIT 50;
查看慢查询设置时间
show variables like 'long_query_time';
查看进程(事物)
show PROCESSLIST
查看正在运行的SQL
show full processlist;
查看最近50条慢查询记录
SELECT * FROM mysql.slow_log ORDER BY start_time DESC LIMIT 50;
查看慢查询设置时间
show variables like 'long_query_time';