docker-entrypoint-initdb.d of mysql docker
already supports delimiter
, but go-sql-driver
still does not support this syntax, resulting in failure to create sql functions
multiStatements=true
root:1234@tcp(127.0.0.1:3309)/fruit?charset=utf8&parseTime=True&loc=UTC&multiStatements=true
- test mysql(docker) docker-entrypoint-initdb.d
$ docker-compose up -d
$ docker logs -f mysql-fruit
- test go-sql-driver
$ go run .
output
hello1 success {0xc0000c0000 0xc0000ba010}
hello2 success {0xc0000c0000 0xc0000ba040}