Created
September 29, 2011 06:25
-
-
Save rebx/1250106 to your computer and use it in GitHub Desktop.
tshark'ing 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
live: | |
tshark -i eth0 -aduration:60 -d tcp.port==3306,mysql -T fields -e mysql.query 'port 3306' | |
capture: | |
tcpdump -i eth0 port 3306 -s 1500 -w tcpdump.out | |
tshark -r tcpdump.out -d tcp.port==3306,mysql -T fields -e mysql.query > query_log.out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi, I used your
live
way to capture mysql query sql, but nothing outputThen I tried another
tshark
commandSo do you know why the first command cannot have any valid output?