Forums

ProgrammingError: (mysql.connector.errors.ProgrammingError) 1044 (42000): Access denied for user '' to database '<>'

Hi, can't understand why I'm getting this error. I'm using the username from the database page and just set a new password to make sure I had the right one. Still get the error. I read through the other similar questions and answers but unfortunately can't see how I've gone wrong. Can I give some more info to troubleshoot? I have this:

   SQLALCHEMY_DATABASE_URI = "mysql+mysqlconnector://{username}:{password}@{hostname}/{databasename}".format(
username="topplethepat",
password="mypassword",
hostname="topplethepat.mysql.pythonanywhere-services.com",
databasename="<topplethepat$palimpseste>"

You should remove the < and the > from the database name.

Thanks! don't know why i didn't see that!

Glad to help!