我正在尝试在运行 Ubuntu 12.04 的 ec2 实例上设置 mysqlfailover 实用程序。我执行了以下步骤:
下载mysql-connector-python:wget http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python_1.0.12-1debian6.0_all.deb -o mysql-connector-python_1.0.12-1debian6.0_all .deb
(使用 dpkg -i 命令安装。)
下载mysql-utilities:wget http://cdn.mysql.com/Downloads/MySQLGUITools/mysql-utilities_1.3.5-1debian6.0_all.deb -o mysql-utilities_1.3.5-1debian6.0_all.deb
(使用 dpkg -i 命令安装。)
存在一些依赖性问题。我运行了以下命令: sudo apt-get install python-pip easy_install -U 分发 sudo apt-get install libmysqlclient-dev sudo apt-get install python-dev pip install mysql-python
现在,当我运行命令 mysqlfailover 时,它给出了以下错误:
Traceback (most recent call last):
File "/usr/bin/mysqlfailover", line 24, in <module>
from mysql.utilities.common.tools import check_python_version
ImportError: No module named mysql.utilities.common.tools
我一直在敲我的头很长一段时间,但没有成功。非常感谢您对此事的任何帮助。谢谢。