Psycopg2 Operational Error: No password supplied
khwilo opened this issue · comments
Khwilo Kabaka commented
When I try to create the database on applying the migration, I encounter this error:
Error
The database URL is set as: postgresql://postgres:@localhost/flask_jwt_auth
.
Solve
I managed to change the database URL to now include a password:
postgresql://postgres:postgres@localhost/flask_jwt_auth
. postgres is the password for the Postgres database which matches this pattern postgresql://user:password@localhost/database_name
.
I think it will be good to include this information in the documentation if anyone encounters such an error.
Reference
https://stackoverflow.com/questions/23839656/sqlalchemy-no-password-supplied-error