首页 > 数据库技术 > 详细

[Mac pro]mysql_config not found

时间:2015-03-14 15:29:31      阅读:323      评论:0      收藏:0      [点我收藏+]

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

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

  1. Install PIP:

    sudo easy_install pip
  2. Edit ~/.profile:

    nano ~/.profile

    Copy and paste the following two line

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

    Save and exit. Afterwords execute the following command

    source  ~/.profile
  3. Install MySQLdb

    sudo pip install MySQL-python

    To test if everything works fine just try

    python -c "import MySQLdb

[Mac pro]mysql_config not found

原文:http://my.oschina.net/u/588339/blog/386997

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!