-2

I'm setting up a MySQL database with Django.

python manage.py runserver.

Worked, then I started editing my database in summertime.settings.py [summertime is the site name]

here is my user:

user: TestUser password: password host: 127.0.0.1

all privileges

My MAMP is set to port: 3306

here is my settings.py

enter image description here

When I run $ python manage.py syncdb I recieve the following errors:

enter image description here

thanks

IdeoREX
  • 1,455
  • 5
  • 22
  • 39

1 Answers1

4

You will need to install the MySQLdb driver

pip install mysql-python

Matt Healy
  • 18,033
  • 4
  • 56
  • 56
  • Tried that, and returned ----> Referenced from: /Users/msmith/Documents/dj/venv/lib/python2.7/site-packages/_mysql.so Reason: image not found – IdeoREX Jul 15 '13 at 23:43
  • You might need to install the MySQL development libraries for your system – Matt Healy Jul 15 '13 at 23:46
  • What do you mean by that? I have in my pip freeze: MySQL-python==1.2.4 – IdeoREX Jul 16 '13 at 00:15
  • There are a few questions on SO about this issue e.g. http://stackoverflow.com/questions/4559699/python-mysqldb-and-library-not-loaded-libmysqlclient-16-dylib http://stackoverflow.com/questions/5509104/python-and-mysql-on-mac-os-x http://stackoverflow.com/questions/4730787/python-import-mysqldb-error-mac-10-6 – Matt Healy Jul 16 '13 at 00:27