Installing MySQL-python on OSX failing due to missing mysql_config
<p>I'm attempting to install <code>MySQL-python</code> on <strong>OSX</strong> so a program I'm writing can talk to our work database to run and get back query results.</p>

<p>I've run into this error explaining that there is a missing <code>mysql_config</code> somewhere. I've come across some other StackOverflow answers but they are geared toward Linux environments.</p>

<p>I've also done a <code>brew install mysql</code> but <code>brew link mysql</code> is failing. I suspect the issue might being right here.</p>

<pre><code>Collecting mysql-python
/Library/Python/2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading MySQL-python-1.2.5.zip (108kB)
    100% |████████████████████████████████| 110kB 1.8MB/s
    Complete output from command python setup.py egg_info:
    sh: mysql_config: command not found
    Traceback (most recent call last):
      File "&lt;string&gt;", line 20, in &lt;module&gt;
      File "/private/tmp/pip-build-ev74Js/mysql-python/setup.py", line 17, in &lt;module&gt;
        metadata, options = get_config()
      File "setup_posix.py", line 43, in get_config
        libs = mysql_config("libs_r")
      File "setup_posix.py", line 25, in mysql_config
        raise EnvironmentError("%s not found" % (mysql_config.path,))
    EnvironmentError: mysql_config not found

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-ev74Js/mysql-python
</code></pre>