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

Can't connect to local MySQL server through socket #376

Closed
zak905 opened this issue Nov 18, 2018 · 1 comment
Closed

Can't connect to local MySQL server through socket #376

zak905 opened this issue Nov 18, 2018 · 1 comment

Comments

@zak905
Copy link

zak905 commented Nov 18, 2018

I am still getting this error even if I specified: "socket" => nil

When I do the socket address defaults to Mysql2::Error::ConnectionError: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'. I am using mysql on docker so I need TCP access.

#161

Any help would be nice

@zak905
Copy link
Author

zak905 commented Nov 18, 2018

After I changed the wordpress config from "host" => "localhost", to "host" => "127.0.0.1",
it works. I hope this helps somebody.

@zak905 zak905 closed this as completed Nov 18, 2018
@jekyll jekyll locked and limited conversation to collaborators Nov 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants