1. 程式人生 > >查詢mysql正在執行的sql

查詢mysql正在執行的sql

select * from information_schema.`PROCESSLIST` where info is not null ORDER BY time desc;  

#查詢查詢時的查詢的正在執行的sql

tcpdump -s 0 -l -w - dst 192.168.244.10 and port 3306 -i bond0 |strings 

查詢實時執行的sql