Forums

web2Py MySQL database does not work

Hi everyone, I'm trying to start my web2Py application however it doesn't connect to MySQL database. The MySQL connection string looks like:

mysql://<my_user>:<password>@<my_user>.mysql.pythonanywhere-services.com/<database_name>

However I am getting the error on my web2py console:

mysql_exceptions.OperationalError: (1044, "Access denied for user 'erickpinheiro'@'%' to database 'erickpinheiro$farmaco'")

My user name is correct as well as the database password. Locally I'm using MySQL 5.7 and I can run my application without problems. What would be causing this error? Thanks a lot.

This is a duplicate of another post you just made on our forums here.