brianmwadime
4/13/2014 - 9:26 AM

psql_running_not_connecting

# If you encounter such a problem
# psql: could not connect to server: No such file or directory
#    Is the server running locally and accepting
#    connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?

-------------------------------------------------------------------------------
# Create the pgsql_socket directory
sudo mkdir /var/pgsql_socket/
# Create a symbolic link to the sockte file
ln -s /private/tmp/.s.PGSQL.5432 /var/pgsql_socket/