go-mysql-server icon indicating copy to clipboard operation
go-mysql-server copied to clipboard

ERROR 1105 (HY000) at line 1: unknown error: expecting "EOF" but got 'V' instead

Open acczefly opened this issue 4 years ago • 1 comments

mysql -h'127.0.0.1' -u'user' -p'pass' homestead -e"SHOW VARIABLES WHERE Variable_name ='language'" mysql: [Warning] Using a password on the command line interface can be insecure. ERROR 1105 (HY000) at line 1: unknown error: expecting "EOF" but got 'V' instead

run with example:

func main() { driver := sqle.NewDefault() driver.AddDatabase(createTestDatabase())

config := server.Config{
    Protocol: "tcp",
    Address:  "localhost:3306",
    Auth:     auth.NewNativeSingle("user", "pass", auth.AllPermissions),
}

s, err := server.NewDefaultServer(config, driver)
if err != nil {
    panic(err)
}

s.Start()

}

acczefly avatar Sep 18 '20 10:09 acczefly

@acczefly This project is not maintained anymore, but you can try with the liquidata fork: https://github.com/src-d/go-mysql-server/issues/873

smola avatar Sep 18 '20 21:09 smola