-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
mysql is always restarting. "Changing ownership of '/var/lib/mysql/mysql.sock': No such file or directory" #221
Comments
I'm not able to reproduce this on macos. |
@t-franz
|
Thank you for your help. I changed the lines to:
But i still can't connect to the database. |
@t-franz I have the same problem, did you solve it? |
@ctechdev No, i'm sorry. I switched to ddev and don't use lamp any more. |
to reproduce the error just change PHPVERSION=php74 |
I could start the stack with php74 and mysql57 without any issues. BUT if you change the settings and rebuild the images you have to delete the old data in the |
thanks a lot, |
Describe the bug
The container status for mysql8 is "Restarting ...". I can't connect to MySQL
which Branch / PHP Version are you using ?
docker-compose.yml: Version 3
php8
mysql8
Steps to reproduce
Followed the instructions and it works in the first run:
I can access http://localhost and phpMyAdmin at http://localhost:8080/
Then i stopped and started the containers:
... and mysql stopped working: mysql is cycling and tries to restart.
I can access http://localhost, but it shows errors:
The log file for the mysql8-Container:
Then i removed the content of the data-folder:
rm -rf data/*
And started it again:
docker compose start
And it works again!
How can i solve this, without loosing everything inside the data-folder?
Expected behavior
After stopping and starting the containers, everything should work the same.
Desktop (please complete the following information):
MacOS: 11.7
Docker Desktop: 4.13.0
Docker Compose: 1.29.2
Additional context
This seems to be a quite similar problem to #91 – but it didn't help me. (Please ignore my last comment inside that closed issue.)
I'm sorry: It's my first time with Docker. I used MAMP until now and i wanted to switch to Docker ... :-(
Thank you for your help!
The text was updated successfully, but these errors were encountered: