Created
December 8, 2015 02:51
-
-
Save foozlevazquez/0bdf6e912cac7b65e10c to your computer and use it in GitHub Desktop.
Capture tcp digest 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
#!/bin/bash | |
set -e | |
TMPF=/tmp/mysql_tcpdump.$$ | |
tcpdump -s 65535 -x -nn -q -tttt -i any -c 50000 port 3306 > ${TMPF} | |
pt-query-digest --type tcpdump ${TMPF} | |
rm ${TMPF} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment