sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) #532
-
This error appears when I try to migrate changes to the database; however, when I make any API call, the data is rendered correctly. The above error only appears when I try to migrate changes to the database using Packages:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
This is a database error, nothing to do with Flask-Migrate:
Make sure that your credentials and/or database URL are correctly configured. |
Beta Was this translation helpful? Give feedback.
Try updating the env.py file that is in your
migrations
directory. You can find the current version here: https://github.com/miguelgrinberg/Flask-Migrate/tree/main/src/flask_migrate/templates/flask