Skip to content

Instantly share code, notes, and snippets.

@palashkulsh
Created March 6, 2018 13:17
Show Gist options
  • Save palashkulsh/1f77e17fe840b0cc5b61cf3cb8ce2323 to your computer and use it in GitHub Desktop.
Save palashkulsh/1f77e17fe840b0cc5b61cf3cb8ce2323 to your computer and use it in GitHub Desktop.
wget percona.com/get/pt-query-digest
chmod 755 pt-query-digest
tcpdump -s 65535 -x -nn -q -tttt -i any -c 400000 port 3306 | pt-query-digest --type tcpdump --output slowlog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment