MySQL Forums
Forum List  »  Connector/Python

Re: MySQLdb on Intel Mac
Posted by: Kevin Teague
Date: April 06, 2007 04:21PM

This thread is very helpful!

I'm running MAMP with phpPOS, and want to work with the database from Python.

For my set-up I had already built a Python 2.4.4 from source for my Intel Mac, and had another version of MySQL with source already installed on my machine in /usr/local/ that I used to build MySQL-python 1.2.2 from source against. Then I just needed to change the startMysql.sh to add the symlink:

ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock

I've also got easy_install installed, so I removed my own build of the MySQL-python package and did:

/usr/local/python/2.4.4/bin/easy_install MySQL-python

This appears to work the MySQL that ships with MAMP as well, and is very easy to install :)

Options: ReplyQuote


Subject
Written By
Posted
August 01, 2006 01:50AM
Re: MySQLdb on Intel Mac
April 06, 2007 04:21PM
January 29, 2008 12:08PM
June 12, 2007 08:23AM
June 13, 2007 09:23AM
August 06, 2007 07:03AM
September 06, 2007 05:51AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.