简体   繁体   English

在OSX 10.11 El Capitan上安装MySQL实用程序

[英]Installing MySQL Utilities on OSX 10.11 El Capitan

Wanted to use mysqldbcopy , which is part of MySQL Utilities. 想要使用mysqldbcopy ,它是MySQL Utilities的一部分。 The latest release (mysql-utilities-1.5.6-osx10.9.dmg) appears to be for Mavericks, and attempting to use it results in the warning: "This package is incompatible with this version of OS X and may fail to install." 最新版本(mysql-utilities-1.5.6-osx10.9.dmg)似乎适用于Mavericks,并且尝试使用它会导致警告:“此软件包与此版本的OS X不兼容,可能无法安装“。 Spoiler alert, it does fail to install. Spoiler警报,它确实无法安装。

I found these instructions , which seem promising: 我发现这些说明似乎很有希望:

  1. You need Connector/Python installed in your system. 您需要在系统中安装Connector / Python。 Download it from here: http://dev.mysql.com/downloads/connector/python/ 从这里下载: http//dev.mysql.com/downloads/connector/python/
  2. Download MySQL Utilities source code by selecting "Source Code" from "Select Platform" in http://dev.mysql.com/downloads/utilities/ http://dev.mysql.com/downloads/utilities/中的 “选择平台”中选择“源代码”,下载MySQL Utilities源代码
  3. Follow the instructions of MySQL Utilities installation from source: http://dev.mysql.com/doc/mysql-utilities/1.5/en/mysql-utils-install-source.html 按照源代码中的MySQL Utilities安装说明进行操作: http//dev.mysql.com/doc/mysql-utilities/1.5/en/mysql-utils-install-source.html

I have Python installed, but am a little unclear about step 2. The download options for source code download list only has options for Windows and a few flavors of Linux. 我安装了Python,但对第2步有点不清楚。源代码下载列表的下载选项只有Windows和一些Linux版本的选项。 Anybody know which one to use? 谁知道使用哪一个?

I managed to install MySQL Utilities from source code. 我设法从源代码安装MySQL Utilities。 The downloads listed for the platform "source code" were all labelled "Architecture Independent" so I figured it didn't matter which one I used. 为平台“源代码”列出的下载全部标记为“架构独立”,所以我认为无论我使用哪一个都无关紧要。

  1. You need Connector/Python installed in your system. 您需要在系统中安装Connector / Python。 Download it from here: http://dev.mysql.com/downloads/connector/python/ 从这里下载: http//dev.mysql.com/downloads/connector/python/
  2. Download MySQL Utilities source code by selecting "Source Code" from "Select Platform" in http://dev.mysql.com/downloads/utilities/ http://dev.mysql.com/downloads/utilities/中的 “选择平台”中选择“源代码”,下载MySQL Utilities源代码
    • I downloaded the Windows distribution and unzipped it 我下载了Windows发行版并将其解压缩
  3. From a terminal: 从终端:
    • $ cd path/to/unzipped/mysql-utilities-1.5.6
    • $ python ./setup.py build
    • $ sudo python ./setup.py install

That all seemed to work great and mysqldbcopy is now available. 这一切似乎都很好,现在可以使用mysqldbcopy I forget it I had to close and reopen my terminal, but, depending on your setup, you might have to do that. 我忘了它我必须关闭并重新打开我的终端,但是,根据你的设置,你可能必须这样做。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM