Skip to content

Commit f995fa1

Browse files
committed
Sleep for 15 seconds if i'm a slave MySQL. Possible solution for issue #3
1 parent fa8c9ea commit f995fa1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mysql/docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ _main() {
391391
docker_setup_db
392392

393393
if [ "$REPLICA" = 'TRUE' ]; then
394+
sleep 15
394395
setup_gtid_replication "$@"
395396
else
396397
docker_process_init_files /docker-entrypoint-initdb.d/*

0 commit comments

Comments
 (0)