I have a Django app on Heroku, I'm trying to connect that app to a Microsoft azure mySQL database. but the following error while in the Heroku BASH terminal when trying to create a superuser of migrating appears.
django.db.utils.OperationalError: (1044, "access denied for user 'azure username' to database 'azure db name'")
where azure username and azure db name are my personal corresponding database parameters that i've created through Microsoft's portal
my password is correct i've double checked it.
this is my production settings.py
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'azure db name',
'USER': 'azure username',
'PASSWORD': '',
'HOST': 'eu-cdbr-azure-north-e.cloudapp.net',
'PORT': '3306'
}
}
is there an extra parameter that i need to enter for validation? or an extra package that i need to install?
this is requirements.txt
appdirs==1.4.0
dj-database-url==0.4.2
Django==1.10.2
gunicorn==19.6.0
packaging==16.8
pyparsing==2.1.10
six==1.10.0
MySQL-python==1.2.5
mysqlclient==1.3.9
Thanks