Why exactly is --skip-slave-start recommended with MySQL `START SLAVE UNTIL`?
6,227
Does it only forget the UNTIL part and replicates till the end of binlog?
That's right.
If a previously configured slave is started without --skip-slave-start
, then it will use the information stored in master.info
to automatically reconnect and continue replication like normal - that is without the UNTIL
clause. Which means proceeding to the end of the binlog and waiting for new binlog events.
Related videos on Youtube
Author by
Vansi
I am a software developer. You can email me @gmail.com. My username there is dowgird.
Updated on September 17, 2022Comments
-
Vansi over 1 year
When issuing
START SLAVE UNTIL
on MySQL , I'm getting the following:Warning: It is recommended to use --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL; otherwise, you will get problems if you get an unexpected slave's mysqld restart.
Why exactly is it recommended to use
--skip-slave-start
? What happens if the slave indeed restarts - does it only forget theUNTIL
part and replicates till the end of binlog? -
Vansi almost 15 yearsThanks, I hope there are no other hidden reasons :)