Created
April 24, 2017 14:01
-
-
Save TomCan/b6b332ada994fcb2f500bdbd1ae6438a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# this requires that MySQL is accessed through TCP/IP, not the unix socket. | |
# run tcpdump for 30 seconds capturing traffic on port 3306 | |
timeout 30 tcpdump -s 65535 -x -nn -q -tttt -i any port 3306 > mysql.tcp.txt | |
# run pt-query-digest on collected file | |
pt-query-digest --type tcpdump mysql.tcp.txt >pt.out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/percona/percona-toolkit/pull/434/files