How To See MySQL Traffic Using tcpdump

Published Date Author: , Posted March 22nd, 2016 at 2:28:50pm

Quick-and-dirty way:
tcpdump -i eth0 -s 0 -l -X dst port 3306

NOTE: That option above is a dash-ELL which provides for unbuffered output.

Maciej Dobrzanski posted the following script on the Percona site at, which I am reposting without permission because it is so good:

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.