Skip to content

Commit 6db75ce

Browse files
committed
change to replace
1 parent 93d0a80 commit 6db75ce

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Simple and fast MySQL to Elasticsearch sync tool, written in Python3.
33

44
## Introduction
55
This tool helps you to initialize MySQL dump table to Elasticsearch by parsing mysqldump, then incremental sync MySQL table to Elasticsearch by processing MySQL Binlog.
6+
Also, during the binlog syncing, this tool will save the binlog sync position, so that it is easy to recover after this tool being shutdown for any reason.
67

78
## Installation
89
By following these steps.

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def xml_dump_loader():
311311
stderr=subprocess.DEVNULL,
312312
close_fds=True)
313313
stream = codecs.EncodedFile(mysqldump.stdout, data_encoding='utf-8',
314-
file_encoding='utf-8', errors='xmlcharrefreplace')
314+
file_encoding='utf-8', errors='replace')
315315
return stream
316316

317317

0 commit comments

Comments
 (0)