A dissector plugin for MySQL XProtocol
- MySQL plus X Plugin
- Install or upgrade to MySQL 5.7.12 or higher.
- Install the X Plugin
- Wireshark
- Get Wireshark
-
Get the xprotocol.lua file. (copy or clone)
-
Put the file into the Wireshark plugin folder.
-
Run Wireshark.
$ git clone https://github.com/naoto-ogawa/wireshark-plugin-mysql-xprotocol $ cp wireshark-plugin-mysql-xprotocol/src/xprotocol.lua ~/.config/wireshark/plugins $ wireshark
-
Check installed correctly.
-
Start or restart MySQL if necessary.
-
Remember the port of MySQL.
$ mysql.server restart --mysqlx_port=8000
-
Note that Wireshark can't work on the default port 33060 on my environment.
-
-
Set the port number of MySQL in the plugin preference.
You can find a lot of example packets in the data directory.
Blog Post : Looking into the details of XProtocol Pipelining (in Japanese)
I only tested the plugin with my local MySQL on my local Mac.
GPL
You should check Beware the GPL in the Wireshark Wiki.