mysql> stop slave io_thread; mysql> show processlist\G -> "Has read all relay log" を確認 mysql> reset master; |
mysql> stop slave io_thread; mysql> show processlist\G -> "Has read all relay log" を確認 mysql> reset master; |
mysql> stop slave io_thread; -> この辺不要かも?
mysql> show processlist\G -> "Has read all relay log" を確認
mysql> show slave status\G -> Relay_Log_File、Relay_Log_Pos を記録
mysql> reset master;
mysql> reset slave;
mysql> change master to
-> master_host = 'XXX',
-> master_user = 'XXX',
-> master_password = 'XXX',
-> master_log_file = (Relay_log_Fileの値)
-> master_log_pos = (Relay_Log_Posの値);
mysql> start slave;
|