go-mysql-server
go-mysql-server copied to clipboard
ERROR 1105 (HY000) at line 1: unknown error: expecting "EOF" but got 'V' instead
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 This project is not maintained anymore, but you can try with the liquidata fork: https://github.com/src-d/go-mysql-server/issues/873