MySQL permission error when restarting server
I'm able to do the initial setup and run LinguaCafe once just fine, but once I turn it off and try to turn it back on, it gives an error:
chown: changing ownership of '/var/lib/mysql/mysql.sock': Operation not permitted
This error repeats several times and the server never restarts. I'm using Docker Desktop in Ubuntu 24.04.
Hi!
Sorry for the late response. I'm not sure what the issue could be. I use ubuntu without docker desktop, and use just plain docker, and I install it in my home directory. The last time I tried a fresh install was a few months ago.
Did you manage to get it working since you opened this ticket?
Nope. Still happening with Docker Desktop on the latest Linux Mint.
{ "Start": "2025-05-08T19:34:15.537106489Z", "End": "2025-05-08T19:34:15.632898488Z", "ExitCode": 0, "Output": "Enter password: \u0007mysqladmin: connect to server at 'localhost' failed\nerror: 'Access denied for user 'root'@'localhost' (using password: NO)'\n" },
Adding rw and user: mysql worked for me:
volumes:
- db:/var/lib/mysql:rw
user: mysql