7

我正在尝试在我的 macOS High Sierra 机器上安装这个 mysql odbc 连接器,但是我收到了这个错误: 在此处输入图像描述

我尝试使用它来安装它installer,以期获得有关问题所在的信息:

➜  ~ sudo installer -pkg Desktop/mysql-connector-odbc-5.3.9-macos10.12-x86-64bit.pkg -target / -verbose
installer: Package name is MySQL Connector/Odbc 5.3.9
installer: Installing at base path /
installer: Preparing for installation….....
installer: Preparing the disk….....
installer: Preparing MySQL Connector/Odbc 5.3.9….....
installer: Waiting for other installations to complete….....
installer: Configuring the installation….....
installer:
#
installer: Validating packages….....
#
installer: The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)

但这无济于事。您对如何调试并安装连接器有任何提示吗?谢谢。

4

2 回答 2

9

我刚刚注意到这一点: 在此处输入图像描述 在此页面上:https ://dev.mysql.com/doc/connector-odbc/en/connector-odbc-installation-binary-osx.html

安装 iODBC ( http://www.iodbc.org/dataspace/doc/iodbc/wiki/iodbcWiki/Downloads ) 后,它就可以安装连接器了。

于 2017-11-24T10:28:29.867 回答
1

我知道我正在恢复一个旧线程,但是刚刚遇到了这个确切的问题/问题,并且没有通过 iodbc 安装解决,我想我会发布对我有用的解决方案。使用命令行...打开终端并运行...

pip install mysql-connector-python

或者

pip install mysql-connector
于 2018-12-03T04:59:23.230 回答