Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing MySQL Utilities on OSX 10.11 El Capitan

Wanted to use mysqldbcopy, which is part of 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." Spoiler alert, it does fail to install.

I found these instructions, which seem promising:

  1. You need Connector/Python installed in your system. Download it from here: 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/
  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

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. Anybody know which one to use?

like image 772
TheMadDeveloper Avatar asked Mar 09 '16 23:03

TheMadDeveloper


People also ask

How do I install MySQL utilities?

If none of the available repositories are applicable to your platform, you can use the source code repository and install MySQL Utilities from the command line. The latest MySQL Utilities downloads are available at http://dev.mysql.com/downloads/utilities/1.6.html. The following sections discuss each repository.

Is there a MySQL installer for Mac?

MySQL for macOS is available in a number of different forms: Native Package Installer, which uses the native macOS installer (DMG) to walk you through the installation of MySQL.


1 Answers

I managed to install MySQL Utilities from source code. 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. Download it from here: 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/
    • I downloaded the Windows distribution and unzipped it
  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. I forget it I had to close and reopen my terminal, but, depending on your setup, you might have to do that.

like image 186
TheMadDeveloper Avatar answered Sep 29 '22 08:09

TheMadDeveloper