Answer the question
In order to leave comments, you need to log in
How to fix mysql docker container?
Host: CentOS 7, after restarting the server, the docker container with mysql database stopped rising
2021-02-10T13:12:40.364242Z 0 [ERROR] Could not open unix socket lock file /var/run/mysqld/mysqld.sock.lock.
2021-02-10T13:12:40.364250Z 0 [ERROR] Unable to setup unix socket lock file.
2021-02-10T13:12:40.364255Z 0 [ERROR] Aborting
I understand that mysql can't create mysqld.sock.lock, but how do I fix this or connect to an aborted container (if at all possible) ?
How, in general, to be in such a situation?
Full log below
Answer the question
In order to leave comments, you need to log in
If there is a (current) backup copy of the data, then it is worth restoring from it. This will be the fastest way.
If there is no backup, then try this article:
https://dev.mysql.com/doc/refman/5.7/en/innodb-rec...
And here's how to actually extract data from the container:
https:// morioh.com/p/dbde4658c10e
Next time, mount the data to the container and set up regular backups.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question