[Mac pro]mysql_config not found

A quick and easy way for Mac OS X 10.8 and 10.9: python

I assume you have XCode, it's command line tool, Python and MySQL installed. mysql

  1. Install PIP: sql

    sudo easy_install pip
  2. Edit ~/.profile: ui

    nano ~/.profile

    Copy and paste the following two line code

    export PATH=/usr/local/mysql/bin:$PATH
    export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/

    Save and exit. Afterwords execute the following command ip

    source  ~/.profile
  3. Install MySQLdb it

    sudo pip install MySQL-python

    To test if everything works fine just try pip

    python -c "import MySQLdb
相關文章
相關標籤/搜索