I did brew remove mysql
. After, i reinstall mysql from dmg again. But now i cant run my django project. It shows me:
ImproperlyConfigured: Error loading MySQLdb module: dlopen(/Users/polinom/workspace/agents/eggs/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg/_mysql.so, 2): Library not loaded: /usr/local/lib/libmysqlclient.18.dylib
Referenced from: /Users/polinom/workspace/agents/eggs/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg/_mysql.so
Reason: image not found
This does not help: sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/local/lib/libmysqlclient.18.dylib
And this does not help: export DLYD_LIBRARY_PATH=/usr/local/mysql/lib
I figured out that there is no file /usr/local/lib/libmysqlclient.18.dylib
. Even here it is absent /usr/local/mysql/lib/
. The only libs that sit in that folder is:
libmysqlclient.15.dylib libmysqlclient_r.15.dylib libndbclient.2.dylib libndbclient.la
libmysqlclient.dylib libmysqlclient_r.dylib libndbclient.dylib
What do i do about that?