go-sql-driver / mysql

Go MySQL Driver is a MySQL driver for Go's (golang) database/sql package
https://pkg.go.dev/github.com/go-sql-driver/mysql
Mozilla Public License 2.0
14.46k stars 2.3k forks source link

Support for OK packets representing EOF #805

Open julienschmidt opened 6 years ago

julienschmidt commented 6 years ago

EOF packets are deprecated. MySQL servers 5.7.5 and up instead send OK packets that signal an EOF, if the client advertises support: https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_basic_ok_packet.html

marti1125 commented 5 years ago

Hi, I am interesting in contribute with this. Could you tell me more? how to I can get start?

methane commented 5 years ago

@marti1125 There is a pull request (#962) for fixing this. So you can get started by:

  1. Understand MySQL protocol by reading documents and packets (using Wireshark).
  2. Review and test #962.