mysqldiff No module named utilities.common.tools

Traceback (most recent call last):
  File "/bin/mysqldiff", line 28, in <module>
    from mysql.utilities.common.tools import check_python_version
ImportError: No module named utilities.common.tools

直接用yum安装的mysqldiff会提示No module named utilities.common.tools

解决方法:

yum remove mysql-connector-python -y
#centos 7 rpm
-Uvh http://repo.mysql.com/yum/mysql-connectors-community/el/7/x86_64/mysql-connector-python-2.1.8-1.el7.x86_64.rpm
#centos 6
rpm -Uvh http://repo.mysql.com/yum/mysql-connectors-community/el/6/x86_64/mysql-connector-python-2.1.8-1.el6.x86_64.rpm
yum install mysql-utilities

 

posted @ 2019-04-01 18:23  imklutz  阅读(2046)  评论(0编辑  收藏  举报