-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
on Chapter3, Page 36: unable to connect to database, check login_user and login_password #578
Comments
I had to specify |
@kayg04 What do you use for But if I SSH into the machine as
So it would appear |
Just noticed in my example that when I logged in locally and connected it was using the Unix socket. So I did:
...and it worked. Thinking I might have messed up the firewall configuration since I can't seem to login to the db from my host machine. |
This command worked for me: ansible db -b -m mysql_user -a "name=django host=% password=django \
priv=*.*:ALL state=present login_unix_socket=/var/run/mysqld/mysqld.sock" Credits to this stackoverflow thread. |
On page 36 of the book, the command fails with the following error message. I am thinking mysql needs some more configuration before access is allowed?
The text was updated successfully, but these errors were encountered: