Cao Danfeng
Cao Danfeng
ddl不做库表的过滤,如果不需要ddl,可以加选项--only-dml
> Hi, pls revise the source code binlog2sqp.py , add a config 'blocking =True' when BinLogStreamReader initialzing as followings: > > ``` > stream = BinLogStreamReader(connection_settings=self.conn_setting, server_id=self.server_id, > log_file=self.start_file, log_pos=self.start_pos,...
请用mysqlbinlog解析出报错那行数据,看下是否有乱码。这种情况一般是,连接是gbk,表结构是utf8,实际存的是gbk编码的中文。用utf8去解码时,mysql会解出乱码,python decode()会抛出UnicodeDecodeError
谢谢反馈,是python-mysql-replication的一个bug 已提交pr,https://github.com/noplay/python-mysql-replication/pull/269 在等待管理员合并
提的pr已经被合并到master,下个版本会修复
python2.7+ 章鱼 ***@***.***> 於 2022年6月24日 週五 上午9:55寫道: > 为啥我 用的时候要改很多代码?不然就会报错 > 例如: > with self.connection as cursor > 后面只要是用with管理的上下文都会报错, > > — > Reply to this email directly, view it...
谢谢反馈,已修复,fdb3fbd3d7138b9d6b9ce4744b0a886e2df25053
好的,多谢反馈。bit和binary都有问题,我来修复
python-mysql-replication把bit类型返回成了string类型,[L244](https://github.com/noplay/python-mysql-replication/blob/master/pymysqlreplication/row_event.py#L244),需要提pr
喔哦,让人激动的patch!我稍后测试哈