Skip to content

Instantly share code, notes, and snippets.

@sakama
Created December 17, 2013 03:51
Show Gist options
  • Select an option

  • Save sakama/7999809 to your computer and use it in GitHub Desktop.

Select an option

Save sakama/7999809 to your computer and use it in GitHub Desktop.
MySQLの通信をtcpdumpでキャプチャする
■SELECT文
tcpdump -l -i eth1 -A -n -s 0 dst port 3306 | grep SELECT
■UPDATE文
tcpdump -l -i eth1 -A -n -s 0 dst port 3306 | grep UPDATE
■INSERT文
tcpdump -l -i eth1 -A -n -s 0 dst port 3306 | grep INSERT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment