Django.core.exceptions.improperlyconfigured: Error Loading Mysqldb Module:
I am following the django tutorial, Many have asked the question but I think my situation is bit unique because after installing python-mysql I still get this error when I try to d
Solution 1:
My libmysqlclient.18.dylib was located in /usr/local/mysql/lib/ but my system was looking for it in /usr/lib/. I ended up creating a symbolic link of libmysqlclient.18.dylib in /usr/lib which fixed the problem.
1.) Make sure that libmysqlclient.18.dylib exists in /usr/local/mysql/lib/.
Open your shell.
sudo -s
ls /usr/local/mysql/lib/ | grep libmysqlclient.18.dylib
You should see the file:
libmysqlclient.18.dylib
If not, search your system for the location of the file:
find / -name libmysqlclient.18.dylib
2.) Create a symbolic link of libmysqlclient.18.dylib in /usr/lib
Enter the following command in your shell:
ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
If your libmysqlclient.18.dylib file wasn't located in /usr/local/mysql/lib replace the first path with the proper path to libmysqlclient.18.dylib.
Hopefully that helps.
Post a Comment for "Django.core.exceptions.improperlyconfigured: Error Loading Mysqldb Module:"