Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加本地binlog解析 #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

增加本地binlog解析 #13

wants to merge 3 commits into from

Conversation

xuyi
Copy link

@xuyi xuyi commented Apr 11, 2017

新增bin2sql.py工具解析本地binlog文件,-f指定本地文件

@danfengcao
Copy link
Owner

danfengcao commented Apr 11, 2017

喔哦,让人激动的patch!我稍后测试哈

@orangle
Copy link

orangle commented Jun 26, 2017

好棒 这个好

@ca2ju3
Copy link

ca2ju3 commented Dec 21, 2017

Traceback (most recent call last):
File "bin2sql.py", line 13, in
from binlog2sql_util import concat_sql_from_binlogevent, create_unique_file, reversed_lines
ImportError: cannot import name concat_sql_from_binlogevent

@leafonsword
Copy link

这个pr合并了吗?

@wqfgithub
Copy link

the funciton is good

@Janyd
Copy link

Janyd commented May 10, 2018

Traceback (most recent call last):
File "bin2sql.py", line 6, in
from binlogfile import BinLogFileReader
File "/Users/janyd/Documents/project/source/binlog2sql/binlog2sql/binlogfile.py", line 13, in
from pymysqlreplication.event import (
ImportError: cannot import name HeartbeatLogEvent

@luyaotang
Copy link

这个补丁合并到主线上了吗??我试了-f参数目前是不支持的啊。

@huxiaoqiao
Copy link

请问这个补丁合并了吗

@mrzhangboss
Copy link

由于还没有合并,而且只支持python2,所以要使用的话,得

pip install  mysql-replication

git fetch origin pull/13/head:local_file_parse

git co local_file_parse

使用方法

python2 bin2sql.py -h127.0.0.1 -P3306 -uadmin -p'admin' -dtest -t test3 test4 --f='mysql-bin.000002'

@362228416
Copy link

这个补丁真棒👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.