You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
Installing the go-mysql-server as described in readme is resulting in error
Following the example instructions:
go get gopkg.in/src-d/go-mysql-server.v0
import (
"fmt""net""testing""time""gopkg.in/src-d/go-mysql-server.v0""gopkg.in/src-d/go-mysql-server.v0/mem""gopkg.in/src-d/go-mysql-server.v0/server""gopkg.in/src-d/go-mysql-server.v0/sql"
)
funcmain() {
e:=sqle.NewDefault()
// Create a test memory database and register it to the default engine.d:=createTestDatabase()
e.AddDatabase(d)
cfg:= server.Config{
Protocol: "tcp",
Address: "localhost:3306",
Auth: nil,
Tracer: nil,
ConnReadTimeout: 0,
ConnWriteTimeout: 0,
}
defaultServer, err:=server.NewDefaultServer(cfg, e)
checkIfError(err)
defaultServer.Start()
}
result in
/gopkg.in/src-d/go-mysql-server.v0/server/server.go:57:60: cannot use handler (type *Handler) as type mysql.Handler in argument to mysql.NewListener: *Handler does not implement mysql.Handler (missing WarningCount method)