Mysqldb Error When Running Python Server On Macosx10.6
Running my server (python manage.py runserver) yielded this error: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb I attempted
Solution 1:
It looks like you have everything installed right, but it can't find libmysqlclient. Have you tried the following?
> sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib> sudo ln -s /usr/local/mysql/lib /usr/local/mysql/lib/mysql
Solution 2:
Sounds like your just missing the mysql-python dependancy for mysql and Django. Don't know how you installed Django though. Use pip or easy_install to install it.
pip install mysql-python
For Django it is recommended to use PostgreSQL though, for development purposes setting up a sqlite database is much, much easier.
Post a Comment for "Mysqldb Error When Running Python Server On Macosx10.6"