MySQL 복제 문제
master와 slave에서 복제 프로세스가 실행 중인지 확인
Command
show processlist;복제 프로세스가 실행 중이면 slave가 master보다 지연되는지 확인
Command to start
start master복제 프로세스가 실행 중이면 slave가 master보다 지연되는지 확인
Check the status
show master status \g; show slave status \g;slave의 중복 항목 때문에 복제 프로세스가 중지된 경우
Solution
STOP SLAVE;
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1; /*This is to skip the duplicate record*/
START SLAVE;원문 정보
원문 보기 ↗Bahmni Wiki · CC BY-SA 4.0