문제

I had run the below mysql query in master server

load data local infile '/tmp/LRD.csv'
into table **offline**.LPLRD_Updates
  fields terminated by ',' ENCLOSED BY '"'
  lines terminated by '\n';

but this has been change in binlog as

LOAD DATA LOCAL INFILE '/tmp/SQL_LOAD_MB-597-0'
INTO TABLE `LPLRD_Updates`
  FIELDS TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '\\'
  LINES TERMINATED BY '\n'

I have mentioned offline database in my query but it has changed to default database in binlog .

This creates the problem in replication as default database do not have this table.

도움이 되었습니까?

해결책

Try doing use db_name; and then load data to the table. Replication breaks or has some documented disadvantages in statement based logging. By the way you cannot really claim data with it on DR site.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top