django에 mysql을 사용하려고 했으나 연결이 어려웠다. 아래 방법들을 다 시도해보고 결국 export PATH=$PATH:/usr/local/mysql/bin/ 를 통해 mysql config위치를 다시 정해 주고 pymysql을 설치하고 django downgrade로 문제 해결 했다.

pymysql 설치 https://stackoverflow.com/a/56312295

django downgrade https://stackoverflow.com/a/58448370

최종적으로 사용된 modules

image
image

.

.

.

image

.

.

.

image

.

.

.

image

위와 같은 error 발생

.

.

ModuleNotFoundError: No module named ‘MySQLdb’

https://stackoverflow.com/questions/53024891/modulenotfounderror-no-module-named-mysqldb

unable to install mysqlclient in python 3.7.3
https://stackoverflow.com/questions/57808191/unable-to-install-mysqlclient-in-python-3-7-3

What’s the difference between MySQLdb, mysqlclient and MySQL connector/Python?

https://stackoverflow.com/questions/43102442/whats-the-difference-between-mysqldb-mysqlclient-and-mysql-connector-python/46396881#46396881

pip install mysql-python fails with EnvironmentError: mysql_config not found
https://stackoverflow.com/questions/5178292/pip-install-mysql-python-fails-with-environmenterror-mysql-config-not-found

Import error :No module named MYSQLdb

https://askubuntu.com/questions/583415/import-error-no-module-named-mysqldb/1048285#1048285

Django – installing mysqlclient error: mysqlclient 1.3.13 or newer is required; you have 0.9.3

https://stackoverflow.com/questions/55657752/django-installing-mysqlclient-error-mysqlclient-1-3-13-or-newer-is-required

Comments are closed.

Post Navigation