[英]Query has been changed in mysql Binlog - Load data query
I had run the below mysql query in master server 我已经在主服务器上运行了以下mysql查询
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 但这已在binlog中更改为
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 . 我在查询中提到了离线数据库,但是在binlog中它已更改为默认数据库。
This creates the problem in replication as default database do not have this table. 由于默认数据库没有此表,因此在复制中会产生问题。
Try doing use db_name; 尝试使用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 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.