Answer the question
In order to leave comments, you need to log in
Connecting to mysql on another server from docker?
I'm trying to connect to mysql on another server using a golang program. The program itself is in a docker container.
db, err := sql.Open("mysql", "test:[email protected](11.11.11.11:3306)/test?charset=utf8")
if err != nil {
return nil, err
}
Error 1045: Access denied for user "test"
Answer the question
In order to leave comments, you need to log in
The host of the user is incorrect (of course, if the name and password are exactly correct and there are grants).
Mysql 1045 access denied for user
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question