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
本文介绍如何使用特定SQL语句和网络抓包工具查询当前正在执行的SQL语句,包括通过information_schema.PROCESSLIST查看和使用tcpdump抓取指定IP及端口的实时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
2108
1821
1617

被折叠的 条评论
为什么被折叠?