Everytime I try to run psql on my mac 10.8 I get the error message:
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"?
According to this post on the problem it's a PATH issue.
I tried editing my path by opening my .profile and adding the line: export PATH=/usr/local/bin:$PATH
However, when I do which psql
it still shows /usr/bin/psql
.
Why isn't it showing the proper path I want: /usr/local/bin/psql
?