Mysql Master, Node Swap with IP

Master IP 10.1.1.1 Node(Slave) IP 10.1.1.2 여분  IP 10.1.1.10 Master IP 수정 : 10.1.1.10으로 변경(재시작 안함) Master Mysql stop : systemctl stop mysql.service Master Network 재시작(IP 변경 적용) : 10.1.1.10 확인 Master /etc/my.cnf 옵션 수정 : server-id=2(Slave IP 로 미리 변경), slave-skip-errors = all 추가 arping -A -I eno1 10.1.1.10 Slave to Master : 10.1.1.2 ->10.1.1.1 수정(Slave 소개 더보기 Mysql Master, Node Swap with IP[…]

mysql replication

Master 서버 10.0.0.1 mysql -uroot -p FLUSH TABLES WITH READ LOCK; reset master; SHOW MASTER STATUS; file과 position 기록 +——————+———-+————–+——————+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | +——————+———-+————–+——————+ | mysql-bin.000001 | 107 | | | +——————+———-+————–+——————+ mkdir /root/db cd /root/db echo “show databases” | mysql -uroot -p | grep -v “Database”|grep -v “test”|grep 소개 더보기 mysql replication[…]