Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DNS.go Connector.go ERROR! #1494

Unanswered
Chriz53 asked this question in Q&A
Discussion options

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

You must be logged in to vote

Replies: 5 comments

Comment options

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.

You must be logged in to vote
0 replies
Comment options

go version
go version go1.19.10 linux/amd64

You must be logged in to vote
0 replies
Comment options

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 ?

You must be logged in to vote
0 replies
Comment options

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
You must be logged in to vote
0 replies
Comment options

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

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #1492 on October 09, 2023 05:00.

AltStyle によって変換されたページ (->オリジナル) /