# 安装
wget http://maatkit.googlecode.com/files/maatkit-6652.tar.gz
tar zxvf maatkit-6652.tar.gz -C /usr/local/
cd /usr/local/maatkit-6652
perl Makefile.PL
make install
# 使用
tcpdump -i eth1 port 3306 -s 65535 -x -n -q -tttt | mk-query-digest –type tcpdump
tcpdump -i bond0 port 3306 -s 65535 -x -n -q -v -tttt | mk-query-digest –type tcpdump