go-mysql-org / go-mysql

a powerful mysql toolset with Go
MIT License
4.52k stars 965 forks source link

Can I use this library to parse bytes to MySQL protocol? #881

Open tim-chow opened 1 month ago

tim-chow commented 1 month ago

I have already captured binary network packets using a packet capture tool like libpcap. Can I use this library to parse these byte sequences into the MySQL protocol?

dveeden commented 1 month ago

Not sure what you need or expect exactly. Either go-mysql or Wireshark might allow you to do this

Is this for debugging? Do you want to extract rows and/or files from the dump?