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


app.config['MYSQL_HOST'] = ''
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.