Using tcpdump to capture mysql packets
Using tcpdump to capture mysql packets is as follows:
The command is as follows:
Copy codeThe Code is as follows:
Tcpdump-s 0-l-w-dst 192.168.244.10 and port 3306-I eno16777736 | strings
-I indicates the network interface of the listener. in RHEL 7, the network interface name is no longer the previous eth0, but eno16777736.
In RHEL 5 & 6, the-I parameter can be directly removed because it is eth0 by default. In RHEL 7, if you do not use the-I parameter to specify a network interface, the following error is returned:
Copy codeThe Code is as follows:
Tcpdump: Bluetooth link-layer type filtering not implemented
The above section describes how to use tcpdump to capture mysql packets. I hope it will help you. If you have any questions, please leave a message and I will reply to you in a timely manner. Thank you very much for your support for the help House website!