Socket File “/var/pgsql_socket/.s.PGSQL.5432” Missing In Mountain Lion (OS X Server)

I was able to add the following to my .bash_profile to prevent the error: export PGHOST=localhost This works because: If you omit the host name, psql will connect via a Unix-domain socket to a server on the local host, or via TCP/IP to localhost on machines that don’t have Unix-domain sockets. Your OS supports Unix … Read more

error code: 521