#35228: django.db.utils.OperationalError: (1044, "Access denied for user 'xyz'@'localhost' to database 'product'") -------------------------------------+------------------------------------- Reporter: amit-asl | Owner: nobody Type: | Status: new Uncategorized | Component: Database | Version: 5.0 layer (models, ORM) | Keywords: mysql, db, Severity: Normal | connection Triage Stage: | Has patch: 0 Unreviewed | Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -------------------------------------+------------------------------------- It's been a while since I am having issues with integrating django with mysql. Right Now, I am using django 3.1 and mysql 5.7. The issue, as you can see, the django mysql client cannot connect to the server with the given credential. Note for you, I have created the user with the name and password and checked locally with the mysql cli client **mysql -u xyz -p** . There it worked fine. I have manually created the user and provided all grant privileges as well.
One important thing that I want to add that I came to test it locally when I got issues with the docker compose first. I think the problem arises from the internal django mysql client. Another follow up question is to you that if it is possible to change django mysql client. Waiting for your response Thank you -- Ticket URL: <https://code.djangoproject.com/ticket/35228> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/0107018dbadd3f25-4d85149e-971a-48b1-b547-fa975cfa120a-000000%40eu-central-1.amazonses.com.