Shell/Bash: 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"? Example

By

Shell/Bash Example: This is the "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"?" Example. compiled from many sources on the internet by SimpleTutorials.org

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)


* Summary: This "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"?" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others