Traceback (most recent call last):
File "/Applications/MAMP/htdocs/Minor Project/xyz.py", line 5, in <module>
import config
File "/Applications/MAMP/htdocs/Minor Project/config.py", line 5, in <module>
import MySQLdb
File "/Users/brijeshlakkad/Library/Python/2.7/lib/python/site-packages/MySQLdb/__init__.py", line 19, in <module>
import _mysql
ImportError: dlopen(/Users/brijeshlakkad/Library/Python/2.7/lib/python/site-packages/_mysql.so, 2): Library not loaded: /usr/local/opt/mysql/lib/libmysqlclient.21.dylib
Referenced from: /Users/brijeshlakkad/Library/Python/2.7/lib/python/site-packages/_mysql.so
**Reason: image not found**
When i install mysql using "brew install mysql", file will be executed. And when i executed brew install mysql, there are two different mysql both running separately. I executed this file, then al data are being stored in local mysql different from phpmyadmin mysql.
MySQL-python
, akaMySQLdb
? If so, that only works with MySQL 5.x (and was only ever fully tested with 5.0). And are you using it on purpose? Or are you using one of the modern connectors likepymysql
ormysqlclient
that can be configured to install a drop-in replacement forMySQLdb
? – Kraigkraitbrew install mysql
just installs one copy of MySQL, intoCellar/mysql
, and then puts a bunch of symlinks into/usr/local/bin
that link to that Cellar. – Kraigkrait