I was trying to do some SQL practice and for when I tried typing psql on my terminal I get:
psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: No such file or directory Is the server running locally and accepting connections on that socket?
I have tried:
brew services listbrew services stop postgresqlbrew services start postgresql
I also tried connecting using Postbird and I get the error:
ECONNREFUSED 127.0.0.1:5432
I was trying to do some SQL practice and for when I tried typing psql on my terminal I get:
psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: No such file or directory Is the server running locally and accepting connections on that socket?
I have tried:
brew services list
brew services stop postgresql
brew services start postgresql
I also tried connecting using Postbird and I get the error:
ECONNREFUSED 127.0.0.1:5432