How to solve django.db.utils.OperationalError: (2005, "Unknown MySQL server host 'db' (8)")?

I am getting the error on Django after using python3 manage.py runserver on my computer.

Error: django.db.utils.OperationalError: (2005, "Unknown MySQL server host 'db' (8)")

Why is this error happening?

Back to Top