Forums

MySQLdb._exceptions.OperationalError: (1045, "Access denied for user 'tietchat'@'10.0.0.122' (using password: YES)"

.

app.config['MYSQL_HOST'] = 'tietchat.mysql.pythonanywhere-services.com'
app.config['MYSQL_USER'] = 'tietchat'
app.config['MYSQL_PASSWORD'] = '**********'
app.config['MYSQL_DB'] = 'tietchat$default'
app.config['MYSQL_CURSORCLASS'] = 'DictCursor'

[edit by admin: formatting]

Are you sure you're using the correct password? It should be the one that you set up on the "Databases" page inside PythonAnywhere. You can double-check what it is by looking at the file .my.cnf in your private file storage.

I have faced the same issue , I have used the right password , though changing and adding a new password and that worked for me .