So I'm having an issue getting Django to work with MySQL. After I log into my Django site, I get the following error:
ImproperlyConfigured: Error loading MySQLdb module: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory The error is being thrown from site-packages/django/db/backends/mysql/base.py line 13. Unlike a lot of similar posts on the message board (I have searched), I have MySQLdb installed. The lines in question are just 'import MySQLdb as Database' and the associated try/catch throwing the error. When I run python from a command line and type 'import MySQLdb' it imports just fine. I added to to the root's .bash_profile and the .bashrc of the 'mysql' user. The file definitely exists (in /usr/local/mysql/lib) I used the variable LD_LIBRARY_PATH in the two profiles to make the 'import MySQLdb' statement work, is that the correct environment variable? As a note, I installed mysql from the .tar.gz files and MySQLpython from the .tar.gz files as well. I can't use any sort of package manager to install this stuff. -- View this message in context: http://www.nabble.com/Error-loading-MySQLdb-module%3A-libmysqlclient_r.so.16---Help-please-tp24014308p24014308.html Sent from the django-users mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---