Answers for "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"? window ubuntu console"

3

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
0

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

$ rm /usr/local/var/postgres/postmaster.pid
$ brew services restart postgresql

# Think to restart your terminal (cmd + q on macOS)
Posted by: Guest on December-20-2020

Code answers related to "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"? window ubuntu console"

Code answers related to "Javascript"

Browse Popular Code Answers by Language