-
-
Notifications
You must be signed in to change notification settings - Fork 655
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 mysql on new install? #506
Comments
@zack6849 MySQL is not running inside the PHP container. You should use:
Info: When not specifying |
FWIW I had exactly the same problem. Happy to find this solution here! The whole Docker thing is awfully confusing for those of us who do not have a lot of experience with it (which is devilbox's target audience, I think). Might be worth mentioning this in the docs. |
@pnoeric Unfortunately for me it is quite obvious and I am unsure how to best formulate it that it is easy to grasp right from the very beginning. Do you have some description in mind that would have made it very obvious to you? |
I would just put a couple of lines in the docs somewhere around where you "use" devilbox (maybe by the part about I find myself often running Again, I suggest this only because I think your target audience for devilbox seems to be folks (like me) who aren't experts at Docker, so these folks don't really understand the concept of separate-but-linked containers for the various services. |
I have rewritten the documentation and hope it does no present what actually needs to be done in Release v1.0.1 https://github.com/cytopia/devilbox/releases/tag/v1.0.1 |
@cytopia, is it possible to overcome the issue by specifying the MySQL host in a cnf file? Like |
ISSUE TYPE
Checklist
.env
file is attacheddocker-compose.override.yml
is attached (if it exists)cfg/
dir are attached (if customized)docker-compose logs
andlog/
output is addedI've looked through existing issues: https://github.com/cytopia/devilbox/issues
OS / ENVIRONMENT
SUMMARY
STEPS TO REPRODUCE
Clone the repo, start the project, and try to connect to mysql.
EXPECTED BEHAVIOUR
MySQL is up and accessible
ACTUAL BEHAVIOUR
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
OTHER INFORMATION
Start command
File and user permissions (Linux & MacOS)
logs.tar.gz
docker-compose-log.txt=
The text was updated successfully, but these errors were encountered: