The problem Im facing while trying to connect to database for mysql. I have also given the database settings that i have used.
Traceback (most recent call l
My answer is similar to @Ron-E, but I got a few more errors/corrections so I'm putting my steps below for Mac OSX on Mavericks and Python 2.7.6.
Install Python mysql package (if you get a success message, then ignore the below steps)
pip install mysql-python
When I did the above, I got the error "EnvironmentError: mysql_config not found"
To fix this, I did the below in terminal:
export PATH=$PATH:/usr/local/mysql/bin
When I reran step 1, I get a new error "error: command 'cc' failed with exit status 1"
To fix this, I did the below in terminal:
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
I reran step 1 and got the success message 'Successfully installed mysql-python'!