Forums

Operational error message when I tried to login into my app hosted on Pythonanywhere

Hello Guys I have been trying for weeks to connect my django app on pythonanywhere to mysql database the thing is I can access my tables and database on mysql console on pythonanywhere but when I tried to login on my app hosted on pythonanywhere I get this error message OperationalError at /backoffice/ (1045, "Access denied for user 'mycdasolution4$my_cdadb'@'10.0.0.22' (using password: YES)") Below is database connection string on my settings.py

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'mycdasolution4$my_cdadb',
        'USER': 'mycdasolution4',
        'PASSWORD': 'mypass',
        'HOST': 'mycdasolution4.mysql.pythonanywhere-services.com',
    }
}

Have you reloaded your web app after making changes to settings?

Thanks a lot Dat was d issue I forgot to reload my app. It is working fine now