使用tcpdump抓包

tcpdump -i eth0 -s 0 -w ./rds.cap port 3306

-i 指定网卡

-s 设置tcpdump的数据包抓取长度为len

-w 保存到文件

port 指定端口