When the mysql container in docker cannot start ps-a, it is found that it has been started but automatically closed.

clipboard.png

Mar.13,2021

it is mentioned in the log:

Failed to find valid data directory

then it means that when you set up volume, one of the two corresponding folders may be empty (it is estimated that there is no / yundata/docker-data), you can first remove the "- v / yundata/docker-data/:/var/lib/mysql" paragraph, and then start it to try, it should be no problem.

of course, you can also manually

mkdir /yundata/docker-data

try to create the container again.

I hope I can help you.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4520e-44b06.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4520e-44b06.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?