Skip to content

Instantly share code, notes, and snippets.

Created April 9, 2014 13:08
What would you like to do?
Use tcpdump to monitor mysql
Use tcpdump to monitor mysql
# Capture the packets
sudo tcpdump -i eth0 port 3306 -s 65535 -x -n -q -tttt > tcpdump.out
# analyze all the requests from a given host
pt-query-digest --type=tcpdump --filter '($event->{host} || $event->{ip} || "") =~ m/' tcpdump.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment