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

Access denied for user 'root'@'localhost' after password change #48

Closed
ryall opened this issue Aug 19, 2015 · 1 comment
Closed

Access denied for user 'root'@'localhost' after password change #48

ryall opened this issue Aug 19, 2015 · 1 comment

Comments

@ryall
Copy link

ryall commented Aug 19, 2015

Getting this since I updated my MySQL root password in the config.

failed: [elm] => {"changed": false, "cmd": ["mysql", "-NBe", "SELECT Host FROM mysql.user WHERE User = \"root\" ORDER BY (Host=\"localhost\") ASC"], "delta": "0:00:00.017469", "end": "2015-08-19 22:23:51.071333", "rc": 1, "start": "2015-08-19 22:23:51.053864", "stdout_lines": [], "warnings": []}
stderr: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

I have tried manually updating the passwords in the user database (all root/host combinations) and while I can log in fine with the new password over SSH, the role still fails.

I am running Ansible 1.9.2 and the server is Ubuntu 14.04.3.

@ryall
Copy link
Author

ryall commented Aug 19, 2015

Seems my root user's .my.cnf on user wasn't updated with the new password. I see in the tasks this happens post DB-update so it's possible something just went wrong the first time.

@ryall ryall closed this as completed Aug 19, 2015
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

1 participant