Skip to content

fixed access denied error messages #595

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

Merged
merged 2 commits into from
Jun 27, 2021

Conversation

skoef
Copy link
Contributor

@skoef skoef commented Jun 26, 2021

Not sure what went wrong trying to rebase #592 so here is a new attempt:


When trying to reproduce my issue as I describe in #578 I came across an omission I made in #589: I directly pass the error code to NewDefaultError instead of the error message corresponding to that code. My apologies for the poor testing.

Also, I noticed that in a different case, the formatting of the user/address was the wrong way around in the access denied error. This gave

ERROR 1045 (28000): Access denied for user '127.0.0.1:51221'@'root' (using password: NO)

and now it correctly gives:

ERROR 1045 (28000): Access denied for user 'root'@'127.0.0.1:51259' (using password: NO)

@lance6716 lance6716 merged commit 13a9144 into go-mysql-org:master Jun 27, 2021
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 this pull request may close these issues.

2 participants