Answers for "`connect_start': connection to server on socket "/var/run/postgresql/.s.pgsql.5432" failed: no such file or directory (pg::connectionbad) is the server running locally and accepting connections on that socket?"

6

psql: error: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

Try running to verify its working:

sudo service postgresql start
Posted by: Guest on May-27-2021
4

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?

$ rm /usr/local/var/postgres/postmaster.pid
$ brew services restart postgresql
Posted by: Guest on December-06-2021

Code answers related to "`connect_start': connection to server on socket "/var/run/postgresql/.s.pgsql.5432" failed: no such file or directory (pg::connectionbad) is the server running locally and accepting connections on that socket?"

Code answers related to "Javascript"

Browse Popular Code Answers by Language