当在MySQL上发出START SLAVE UNTIL时,我得到以下内容:
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.
为什么build议使用--skip-slave-start ? 如果从机确实重新启动,会发生什么情况 – 它是否只忘记了UNTIL部分,直到binlog结束?
它是否只忘记了UNTIL部分并复制到binlog结尾?
那就对了。
如果先前configuration的从master.info没有--skip-slave-start情况下--skip-slave-start ,那么它将使用master.info存储的信息自动重新连接,并继续复制,就像正常情况一样 – 没有UNTIL子句。 这意味着继续到binlog的末尾,等待新的binlog事件。