Published: 11 Sept 2018 › Updated: 11 Sept 2018
mysql slave 오류 Error_code: 1032
mysql slave 오류 Error_code: 1032 오류
Could not execute Update_rows event on table mysql.user; Can't find record in 'user', Error_code: 1032; handler error
HA_ERR_KEY_NOT_FOUND; the event's master log mysql-bin.000002, end_log_pos 796
slave 로그포지션 번호가 틀린경우 오류 발생 합니다.
reset slave 를 해도 아래의 동일한 오류 메세지 발생 할경우
해결 방법
- master DB 데이터 백업해서 Slave 복원
- log_pos skip을 통해 해결 (복원 이슈없을경우)
- 로그 포지션 변경
log_pos 현재 94 --> 95로 변경
stop slave;
change master to master_log_file 'mysql-bin.00001', master_log_pos=95;
start salve;
- 오류 발생시 포지션 번호 하나씩 건너 뛰기
오류가 없을 때 까지 아래의 내용 반복
stop slave ;
set global sql_slave_skip_counter=1;
start slave;
- 오류 해결 해결
stop slave;
set global sql_slave_skip_counter=0;
start slave;
show slave status;
Leave mysql slave 오류 Error_code: 1032 to:
Read more #kr posts
Best Posts From 행복님
We have not curated any of jaerakson's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.