-
Notifications
You must be signed in to change notification settings - Fork 2.3k
-
I get this error on centos
go get -u github.com/go-sql-driver/mysql
github.com/go-sql-driver/mysql
Projects/Proj1/src/github.com/go-sql-driver/mysql/connector.go:41:18: undefined: strings.Cut
Projects/Proj1/src/github.com/go-sql-driver/mysql/dsn.go:393:24: undefined: strings.Cut
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 5 comments
-
check your Go version please.
Currently, Go 1.18 or higher are required.
Go 1.18 or higher. We aim to support the 3 latest versions of Go.
Beta Was this translation helpful? Give feedback.
All reactions
-
go version
go version go1.19.10 linux/amd64
Beta Was this translation helpful? Give feedback.
All reactions
-
I use mariadb since 3 days its not working it worked before I also tried on fresh vps still not work did you guys any changes ?
Beta Was this translation helpful? Give feedback.
All reactions
-
I tried to install the driver using Go 1.19.10, but it succeeds.
shogo@ichinoseshougonoMacBook-Pro 2023年10月09日-mysql % go1.19.10 mod init example.com
go: creating new go.mod: module example.com
shogo@ichinoseshougonoMacBook-Pro 2023年10月09日-mysql % go1.19.10 get -u github.com/go-sql-driver/mysql
go: added github.com/go-sql-driver/mysql v1.7.1
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
working now with 1.19.10
go get -u github.com/go-sql-driver/mysql
go: downloading github.com/go-sql-driver/mysql v1.7.1
go: added github.com/go-sql-driver/mysql v1.7.1
Beta Was this translation helpful? Give feedback.