无法运行MySql Utilities

时间:2014-02-14 14:09:58

标签: python mysql mysql-workbench

当我尝试从WorkBench运行MySQL Utilities时,我收到以下错误:

h3tr1ck$ mysqluc -e "help utilities"
Traceback (most recent call last):
  File "/bin/mysqluc", line 23, in <module>
  from mysql.utilities.common.options import license_callback, UtilitiesParser
File "/Library/Python/2.7/site-packages/mysql/utilities/common/options.py", line 34, in     <module>
from mysql.connector.conversion import MySQLConverter
ImportError: No module named connector.conversion

然后,如果我在终端输入“mysql”,它会告诉我找不到命令。任何帮助,将不胜感激。

感谢。

1 个答案:

答案 0 :(得分:23)

MYSQL Utilities假定已安装MySQL Connector for Python。 如果您安装它(http://dev.mysql.com/downloads/connector/python/),MySQL Utilities应运行正常。