Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I get this error when I try connecting to a PostgreSQL server:

psql: could not connect to server: Too many levels of symbolic links
    Is the server running locally and accepting
    connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?

What can I do to fix this?

I have Postgres installed on my Mac.

share|improve this question

closed as off-topic by Jack Douglas Aug 22 '13 at 7:36

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Too localized - this could be because your code has a typo, basic error, or is not relevant to most of our audience. Consider revising your question so that it appeals to a broader audience. As it stands, the question is unlikely to help other users (regarding typo questions, see this meta question for background)." – Jack Douglas
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

Check what is /var/pgsql_socket/.s.PGSQL.5432. And if it is symlink, what it points to.

share|improve this answer
1  
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. –  Jon Seigel Jun 22 '13 at 14:03
2  
I didn't request clarification nor critiqued. What I wrote is (in my opinon) provided answer to question: "What can I do to fix it?". Checking symlinks is first step on fixing. –  user1593 Jun 22 '13 at 14:32

Not the answer you're looking for? Browse other questions tagged or ask your own question.