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

SQL-labs 出现bug #3

Open
zh0ub0 opened this issue Nov 10, 2018 · 3 comments
Open

SQL-labs 出现bug #3

zh0ub0 opened this issue Nov 10, 2018 · 3 comments

Comments

@zh0ub0
Copy link

zh0ub0 commented Nov 10, 2018

image
如图所示,在一次docker-compose up -d 后,会出现不能连接数据库的错误。提示信息为:[*]...................Could not connect to DB, check the creds in db-creds.inc: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

@zh0ub0
Copy link
Author

zh0ub0 commented Nov 10, 2018

经过验证,单个docker-compose up -d 就行了
image

@c0ny1
Copy link
Owner

c0ny1 commented Nov 14, 2018

我这边测试是没有问题的,不知道你docker是在什么Linux发行版本上运行的。

@zh0ub0
Copy link
Author

zh0ub0 commented Nov 15, 2018

Ubuntu 16.04.5
Docker version 18.06.1-ce, build e68fc7a
docker-compose version 1.8.0

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

2 participants