문제

When I "playback" the statments from binary, the Load data statment fails for obvious reason.

LOAD DATA LOCAL INFILE '/tmp/SQL_MB-80-2' REPLACE INTO TABLE some_table

How do I make sure that the data is consistent even if I run the extract of the binary files onto a different server?

도움이 되었습니까?

해결책

While extracting the binary statements, I need local-load parameter

mysqlbinlog /var/log/mysql/mysql-bin.* --start-datetime="2010-02-03 15:55:38" --local-load='tmp/' > tocentral.txt
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top