In my flask application, I am using flask-migrate. While developing locally, I have created migration file. I have uploaded the migration folder on pythonanywhere. I have all the dependencies correctly installed. My database on pythonanywhere is correctly configured.
On pythonanywhere bash command prompt, I have activated the virtual environment where flask-migrate is installed. I set the FLASK_APP variable correctly. Finally when, running the command:
flask db upgrade
Now I am getting the error:
(1044, "Access denied for user 'prrbusinessbook'@'%' to database 'pms_db'")
I understand that mysql database on pythonanywhere can not be connected without ssh. But then how can I use flask-migrate on pythonanywhere?