Skip to content

Conversation

Sam-Martin
Copy link

I was finding in my testing that often my slave container would start initialising replication before my master container was ready. This usually resulted in the slave getting into a bad state and having to be reset.

This code snippet executes a MySQL ping until the master is ready, then proceeds to setup replication on the slave.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant