Skip to content
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

server: Mysql auth with root doesn't work and the real error is hidden #29

Open
OlliV opened this issue Mar 23, 2019 · 2 comments
Open

Comments

@OlliV
Copy link
Contributor

OlliV commented Mar 23, 2019

username: root
password:

I couldn't auth with root with nor without a password, the following error was printed.

ERRO[2019-03-23 13:07:41] [Lifetime Mngt Thread]: Failed to get all mitigation from DB
ERRO[2019-03-23 13:07:41] [Lifetime Mngt Thread]: Failed to get all Aliases from DB

For some reason alias.go doesn't print the auth error, even though there is a log.Printf line but I was able to get the real error by adding withError to active_acl_alias.go. The error was:

error="Error 1698: Access denied for user 'root'@'localhost'"

I don't think the auth issue with root is critical as nobody should do that anyway. However it seems the error logging is somehow broken.

@OlliV OlliV changed the title Mysql auth with root doesn't work and the real error is hidden server: Mysql auth with root doesn't work and the real error is hidden Mar 23, 2019
@kun9717
Copy link

kun9717 commented Nov 27, 2020

Dear sir, have you solved this problem?
When I connected the server and client, the same error occurred.
How to solve the problem of authentication failure?
@OlliV

@OlliV
Copy link
Contributor Author

OlliV commented Nov 27, 2020

No, I never did.

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

No branches or pull requests

2 participants