0

So long story short I'm starting work on a project and I have a variety of things that I need to setup in order to get started. One of those being PostgreSQL. I'm trying to get it setup but I'm running into a few problems. I can get the server started but then when I go to set it up I get the following:

Lady: anthonygarand$ pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
server starting

Lady: anthonygarand$ psql template1
psql: could not connect to server: Permission denied
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?

Any help would be much appreciated. I can provide more details if necessary. Just let me know.. I don't know much about this stuff.

Thanks!

1 Answer 1

1

Does the listen socket exist on your filesystem ? (maybe the unixdomein socket is located in a different directory ( /tmp/ ). There seem to be pre-packaged binaries with different locations for the listen socket.) If it exists at that location, you should check your postgres.conf and pg_hba.conf.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.