티스토리 뷰
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' 카테고리의 다른 글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- gitlab
- softether
- centOS7
- mod_security
- php
- ssh
- 리눅스
- virtualbox
- GeoIP
- kvm
- 인증서
- iptables
- mariadb
- yum
- L2TP
- HAProxy
- Apache
- IPSEC
- NGINX
- pptp
- WAF
- centos8
- cURL
- glusterfs
- SSL
- galera
- MySQL
- ntp
- 베이어다이나믹
- OpenVPN
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함