Answers for "mac psql: error: could not connect to server"

1

postgresql blocked on mac

$ brew services stop postgresql
$ rm /usr/local/var/postgres/postmaster.pid # adjust path accordingly to your install
$ brew services start postgresql
Posted by: Guest on September-24-2020
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 "mac psql: error: could not connect to server"

Code answers related to "Javascript"

Browse Popular Code Answers by Language