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
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
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)
PostgreSQL - is the server running locally and accepting connections on unix domain socket /tmp/.s.pgsql.5432
rm /usr/local/var/postgres/postmaster.pid
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us