Forums

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

No matter what I do, I keep getting this error. I've tried everything I can find in a Google search, including changing the password multiple times on my Database page, checking/changing the password in the '.my.cnf' file, all my Server settings are copy & pasted directly from the MySQL Database page. I don't know what else to try.

import MySQLdb
db = MySQLdb.connect(
    host='CheekyLions.mysql.pythonanywhere-services.com',
    user='CheekyLions',
    passwd=<password>,
    db='CheekyLions$rh_store')

Where are you getting that error -- in a website, a console, a scheduled task, or somewhere else?

In a console. But I ended up waiting and again trying to change the password in the Databases page. That ended up working. Thank you.

All right, glad you got that working!