Skip to content

Access denied for user 'root'@'127.0.0.1:3306' (using password: Yes) #531

New issue

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

Closed
xhrg opened this issue Dec 14, 2020 · 1 comment · Fixed by #646
Closed

Access denied for user 'root'@'127.0.0.1:3306' (using password: Yes) #531

xhrg opened this issue Dec 14, 2020 · 1 comment · Fixed by #646

Comments

@xhrg
Copy link

xhrg commented Dec 14, 2020

  1. 基于go-mysql v1.1.0
  2. mysql-connetor

java代码:
DriverManager.getConnection("jdbc:mysql://127.0.0.1:33060/ssdb?verifyServerCertificate=false&useSSL=false", "root", "root");

golang代码

func main() { logrus.SetLevel(logrus.DebugLevel) l, _ := net.Listen("tcp", ":33060") for true { c, error := l.Accept() if error != nil { logrus.Errorf("accept error, %v", error) } conn, error := server.NewConn(c, "root", "root", pkg.NewHandler()) if error != nil { logrus.Errorf("server.NewConn error, %v", error) continue } go handlerConn(conn) } }

这样会报错 Access denied for user 'root'@'127.0.0.1:3306' (using password: Yes)

@pretty66
Copy link
Contributor

嗨,你这个问题解决了吗,我遇到了同样的问题!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants