Cole StrilerCole Striler

By Cole Striler. 

sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not connect to server: Connection refused

October 10, 2022

  1. Open postgresql.conf and add:
listen_addresses = '*'
  1. Then, delete the file named postmaster.pid in the same location as the above file. Restart Postgres and then you should be good to go.

By Cole Striler. 

If this was helpful or you have any other questions, reach out on Twitter! Happy to help.

© 2022, Cole Striler