티스토리 뷰
Database
The slave I/O thread stops because master and slave have equal MySQL server ids; these ids must be different for replication to work (or the --replicate-same-server-id option must be used on slave but this does not always make sense; please check the ma..
초보의 CHOMAN 2020. 10. 14. 12:16DB 리플리케이션 초기 발생 에러
The slave I/O thread stops because master and slave have equal MySQL server ids; these ids must be different for replication to work (or the --replicate-same-server-id option must be used on slave but this does not always make sense; please check the manual before using it).
서버간 server_id 가 동일해서 발생함
# 각 노드에서 sever_id 확인
node1 mysql> SHOW GLOBAL VARIABLES LIKE 'server_id';
node2 mysql> SHOW GLOBAL VARIABLES LIKE 'server_id';
node를 각각 sever_id 1, server_id 2 이런식으로 중복되지 않아야 함
set global server-id=2;
node 1을 그대로 두고 node 2를 위와 같이 바꿈
각 노드에서 리플리케이션 재시작
stop slave;
start slave;
'Database' 카테고리의 다른 글
댓글
공지사항