일상 기록 창고

Slave SQL: If a crash happens this configuration does not guarantee that the relay log info will be consis 본문

프로그래밍/mysql

Slave SQL: If a crash happens this configuration does not guarantee that the relay log info will be consis

Crazy_Kong 2019. 5. 29. 09:19

Mysql replication slave [Warning] Slave SQL: If a crash happens this configuration does not guarantee that the relay log info will be consistent, Error_code: 0


슬레이브 디비에 릴레이 로그 일관성을 유지 할 수 없다는 경고 메세지가 나와 다음과 같이 처리 함.

mysql > show global variables like '%repository'

+---------------------------+-------+

| Variable_name             | Value |

+---------------------------+-------+

| master_info_repository    | FILE   |

| relay_log_info_repository  | FILE   |

+---------------------------+-------+

위의 설정을 TABLE 로 변경 

방법 1 )
mysql> stop slave;
mysql> set global master_info_repository='table';
mysql> set global relay_log_info_repository='table';
mysql> start slave;

방법 2 ) my.cnf 설정 추가
master_info_repository=TABLE
relay_log_info_repository=TABLE 
설정 후 재시작