Created
April 9, 2014 13:08
-
-
Save gstark/10268260 to your computer and use it in GitHub Desktop.
Use tcpdump to monitor mysql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/192.168.248.64/' tcpdump.out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment