Error sqlalchemy 1044

Asked

Viewed 45 times

1

I have a Python application that connects to a Mysql database through Sqlalchemy, but it wasn’t me who developed it.

When migrating the database to another server (aws.rds go Daddy), I switched to string connection to the new server and apparently the database is configured correctly, because I can connect it to Workbench, but when I run the application it presents the following error:

sqlalchemy.exc.OperationalError OperationalError: (OperationalError) (1044, "Access denied for user'food@'%' to database 'otpx'") None None.

How can I fix this?

1 answer

1


I got. In Mysql I ran the following code:

GRANT ALL PRIVILEGES on name_banco. * TO user'@'api.namedhost.com.br' IDENTIFIED BY 'password'

Browser other questions tagged

You are not signed in. Login or sign up in order to post.