I’ve been working on this project for the last few days and today when trying to log in to PostgreSQL I got this:
psql: error: connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: Connection refused
Is the server running locally and accepting connections on that socket?
Why does this happen?