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

[ bug ]V1.7.13,工具插件中的binlog2sql功能异常 #899

Closed
yuandajn578 opened this issue Sep 30, 2020 · 8 comments
Closed

[ bug ]V1.7.13,工具插件中的binlog2sql功能异常 #899

yuandajn578 opened this issue Sep 30, 2020 · 8 comments
Labels
bug Something isn't working

Comments

@yuandajn578
Copy link
Contributor

在提交 issue 前,请查阅以下资源,请先进行搜索来保证没有类似的 issue。
文档 | FAQ

重现步骤

1111

版本信息

应用版本/分支:

部署方式:Docker、手工部署

@zhituanchen
Copy link

请问这个有解决方法么

@zhituanchen
Copy link

我之前是同步过lickhouse-mysql-data报错的:
处理方法:
docker exec -it archery bash
cd /opt/venv4archery/lib/python3.6/site-packages/pymysql
vi charset.py
后面添加:
#TODO: remove this
def charset_to_encoding(name):
"""Convert MySQL's charset name to Python's codec name"""
if name in ('utf8mb4', 'utf8mb3'):
return 'utf8'
return name

docker stop archery
docker start archery
然后出现其他报错,继续查看中......:
image

@zhituanchen
Copy link

查看:danfengcao/binlog2sql#66
安装PyMySQL==0.9.3即可:
步骤:
docker exec -it archery bash
source /opt/venv4archery/bin/activate
pip list
PyMySQL 0.10.0
(venv4archery) [root@00111dac9d42 archery]# pip uninstall PyMySQL
Found existing installation: PyMySQL 0.10.0
Uninstalling PyMySQL-0.10.0:
Would remove:
/opt/venv4archery/lib/python3.6/site-packages/PyMySQL-0.10.0.dist-info/*
/opt/venv4archery/lib/python3.6/site-packages/pymysql/*
Proceed (y/n)? y
Successfully uninstalled PyMySQL-0.10.0
(venv4archery) [root@00111dac9d42 archery]# pip install PyMySQL==0.9.3
Collecting PyMySQL==0.9.3
Downloading PyMySQL-0.9.3-py2.py3-none-any.whl (47 kB)
|████████████████████████████████| 47 kB 38 kB/s
Installing collected packages: PyMySQL
Successfully installed PyMySQL-0.9.3
(venv4archery) [root@00111dac9d42 archery]# pip list
PyMySQL 0.9.3
(venv4archery) [root@00111dac9d42 archery]# exit
exit
[root@mytestuse ~]# docker stop archery
archery
[root@mytestuse ~]# docker start archery
archery
[root@mytestuse ~]#
解析binlog:
image

@yuandajn578
Copy link
Contributor Author

yuandajn578 commented Oct 13, 2020 via email

@hhyo
Copy link
Owner

hhyo commented Oct 13, 2020

感谢定位,应该是新版本升级了依赖导致,可以提交pr修改下

@hhyo hhyo added the bug Something isn't working label Oct 20, 2020
@hhyo hhyo closed this as completed in f280699 Oct 20, 2020
@mawenbin666

This comment has been minimized.

@mawenbin666
Copy link

查看:danfengcao/binlog2sql#66
安装PyMySQL==0.9.3即可:
步骤:
docker exec -it archery bash
source /opt/venv4archery/bin/activate
pip list
PyMySQL 0.10.0
(venv4archery) [root@00111dac9d42 archery]# pip uninstall PyMySQL
Found existing installation: PyMySQL 0.10.0
Uninstalling PyMySQL-0.10.0:
Would remove:
/opt/venv4archery/lib/python3.6/site-packages/PyMySQL-0.10.0.dist-info/*
/opt/venv4archery/lib/python3.6/site-packages/pymysql/*
Proceed (y/n)? y
Successfully uninstalled PyMySQL-0.10.0
(venv4archery) [root@00111dac9d42 archery]# pip install PyMySQL==0.9.3
Collecting PyMySQL==0.9.3
Downloading PyMySQL-0.9.3-py2.py3-none-any.whl (47 kB)
|████████████████████████████████| 47 kB 38 kB/s
Installing collected packages: PyMySQL
Successfully installed PyMySQL-0.9.3
(venv4archery) [root@00111dac9d42 archery]# pip list
PyMySQL 0.9.3
(venv4archery) [root@00111dac9d42 archery]# exit
exit
[root@mytestuse ~]# docker stop archery
archery
[root@mytestuse ~]# docker start archery
archery
[root@mytestuse ~]#
解析binlog:
image

pymysql==0.93 支持mysql 8.0 的版本吗?

@zhituanchen
Copy link

Hi:
从实验看是可以的,数据库测试版本:docker mysql 8.0.21;
具体查看:https://github.com/danfengcao/binlog2sql的查看相关issues
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants