0

I'm trying to connect my Django app with MySQL and I have Successfully installed MySQL-connector-python-2.0.4 also. But after that whenever I run server same error message is showing.

Here are my cmd ...

error error code

Here is the full message showing

2
  • 1
    this is unreadable, add please text instead of images Commented Aug 6, 2020 at 20:41
  • What does the last line say? Commented Aug 6, 2020 at 20:55

1 Answer 1

1

you are installing MySQL connector for python (not recommended), you need the MySQLdb module, refer to this official recommendation from django doc https://docs.djangoproject.com/en/3.0/ref/databases/#mysql-db-api-drivers and install mysqlclient it is a native driver and It’s the recommended choice.

pip install mysqlclient

for further informations have a look at this medium post : https://medium.com/@omaraamir19966/connect-django-with-mysql-database-f946d0f6f9e3

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.