sqlalchemy error 1044

0

I have a Python application that connects to a Mysql database through Sqlalchemy, but I did not develop it.

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

  

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

How can I resolve this?

    
asked by anonymous 09.08.2016 / 04:22

1 answer

1

I have. In Mysql I ran the following code:

  

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

    
09.08.2016 / 16:38