We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When connecting to mysql 8 it works, but can't connect to mysql 5.7
import ( "database/sql" _ "github.com/go-sql-driver/mysql" ) var dsn = "root:xxx@/mydb?charset=utf8" var err error db, err = sql.Open("mysql", dsn) if err != nil { log.Fatal("Could no parse DB DSN: "+err.Error()) } err = db.Ping() if err != nil { log.Fatal("Unable to connect to DB: "+err.Error()) }
Error 1130: Host '127.0.0.1' is not allowed to connect to this MySQL server
The text was updated successfully, but these errors were encountered:
If I connect with unix socket it seems to work unix(/var/run/mysqld/mysqld.sock)
unix(/var/run/mysqld/mysqld.sock)
Sorry, something went wrong.
No branches or pull requests
When connecting to mysql 8 it works, but can't connect to mysql 5.7
Error 1130: Host '127.0.0.1' is not allowed to connect to this MySQL server
The text was updated successfully, but these errors were encountered: