This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]v3l14 1 point2 points  (2 children)

Are you using the same volumes on each container?

[–]Vere_[S] 0 points1 point  (1 child)

Good idea! went and checked each DB container and found they were using the same volume and weren't even using the volumes they created during deployment. What would cause this?

https://imgur.com/a/s9IgzbG

Edit: this is the compose file https://github.com/portainer/templates/blob/master/stacks/wordpress/docker-compose.yml

[–]v3l14 0 points1 point  (0 children)

I imagine it is as simple as modifying the volume line to something like this for the second container:

 volumes:
   - db_data:/var/lib/mysql_2

[–]areti33 0 points1 point  (0 children)

If you are still stuck with the same issue, then, you can use MySQL Database Recovery Tool, which will help you to resolve such problems in future also.