I get the following error trying to run the Django development server. I\'m using OS X 10.8. I also using virtualenv system install package.
(django-env)Glyns-iM
Resolved:
Adding a couple of symbolic links fix this issue for me.
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
In MacOSX "El Capitan" the accepted response does not work because the new restrictions on SIP/rootless policy to prevent access to usr/lib/
The symbolic links that fix this issue in OSX El Capitan are the following
sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/local/lib/libmysqlclient.18.dylib
sudo ln -s /usr/local/mysql/lib /usr/local/mysql/lib/mysql