Can't run MySql Utilities

2019-06-17 00:21发布

问题:

When I try and run MySQL Utilities from WorkBench I get the following error:

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

Then, if I type "mysql" into terminal it tells me that the command can not be found. Any help would be appreciated.

Thanks.

回答1:

MYSQL Utilities assumes that the MySQL Connector for Python has been installed. If you install it (http://dev.mysql.com/downloads/connector/python/), MySQL Utilities should run OK.