-
Notifications
You must be signed in to change notification settings - Fork 120
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
mysqld.sock missing #2
Comments
Hey @karellm I've never tried to use my docker-wordpress setup with an external data volume, so I'm guessing it's something in there that's causing issues -- especially if you haven't modified the wp-config.php file in your external mount. Could you do me a favour and try to run it according to my README -- that is, from the git clone:
and then let me know if you're still having the mysqld sock errors? Thanks! |
So Adding the -v mount option cause the following output:
The On a side note, I modified the |
Hey,
I'm confused as it appears the the mysql.sock is missing. Here is what I do:
All boots ok, but then when I access the site, I get the famous
Error establishing a database connection
. So I decided to investigate by running this:I get:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Ok, so now, I run
mysqld_safe & sleep 10s
. All good, I canmysql -uroot -p
, the/var/run/mysqld/mysqld.sock
was created.What confuses me is that after getting this
mysqld.sock
, I commited the change to the image. But then thesudo docker run -v /srv/wwww/myproject/wordpress/:/var/www/ -d wordpress /bin/bash /start.sh
leads again to mysql connection error.I've tried many things before asking but I'm totally confused by this behaviour. Thanks!
The text was updated successfully, but these errors were encountered: