i am again and again failing to connect to external mysql db on phpmyadmin db as my django keeps connnecting to its localhost database i have tried many things but not getting success can you guys help me please
#db conf in settings.py
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'db_name',
"USER": "user",
"PASSWORD": "password",
"host": 'host_ip',
'PORT': 3306,
}
}
i have already installed packages like mysql and mysqlclient but still not getting connect to external db, and when i do migration i get errors like localhost target machine actively refused connection