Forums

database access deniedd

Hi am havaing the following error

django.db.utils.OperationalError: (1045, "Access denied for user 'abdimaden'@'ip-10-168-122-144.ec2.internal' (using password: YES)")

DATABASES = { 80 'default': { 81 'ENGINE': 'django.db.backends.mysql', 82 'NAME': '<abdimaden>$<abc>', 83 'USER': 'abdimaden', 84 'PASSWORD': '***', 85 'HOST': 'abdimaden.mysql.pythonanywhere-services.com', 86 } 87 }

am using the correct password as i have resetted it many times

quick check- do you have weird symbols in your mysql password? and also have you reloaded the webapp afterwards?

i have no symbols in mysql password. just numbers

Hmm. Another quick thing to check- are you able to access your mysql database successfully if you start a bash console and try to connect to it manually?

ie. mysql -u USERNAME -h HOSTNAME -p

when i use the above i also get access denied

Could you copy and paste the exact command that you're using?