DB not starting and can't access terminal
My db relies on a named volume. I've added the volume to my compose file and also added the file mount to the volume to the host:
" volumes:
- "../files/db_data:/var/lib/mysql""
I added the dump of my mysql db into the content of the volume. All of my containers are running properly besides my DB which you can see in the screenshot and my API container that depends on my DB.
The error messages show that the db is having issues where the mount should be: "[MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it." What have I done wrong witht he volume?





2 Replies
I've now added the db dump to a db_dump volume mounted to "docker-entrypoint-initdb.d/database_dump.sql" in hopes that this would initialise the db. I then left db_data as the mount for the initialised db. still no luck and the container exits immmediately

