Need help with go-mysqlstack?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

144 Stars 20 Forks GNU General Public License v3.0 45 Commits 1 Opened issues


MySQL protocol library implementing in Go (golang)

Services available


Need anything else?

Contributors list

Build Status Go Report Card


go-mysqlstack is an MySQL protocol library implementing in Go (golang).

Protocol is based on mysqlproto-go and go-sql-driver

Running Tests

$ mkdir src
$ export GOPATH=`pwd`
$ go get -u
$ cd src/
$ make test


  1. examples/mysqld.go mocks a MySQL server by running:
$ go run example/mysqld.go
  2018/01/26 16:02:02.304376 mysqld.go:52:     [INFO]    mysqld.server.start.address[:4407]
  1. examples/client.go mocks a client and query from the mock MySQL server:
$ go run example/client.go
  2018/01/26 16:06:10.779340 client.go:32:    [INFO]    results:[[[10 nice name]]]


go-mysqlstack is production ready.


go-mysqlstack is released under the GPLv3. See LICENSE

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.