1
votes

I am currently working on a ruby on rails application and I am having problems running a RSpec test. With further drilling , i went into my terminal and tried to run the simple psql command

psql

This message cam back immediately: 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"?

What is weird is when i go into my localhost: I can clearly see the database information(i.e. customer information and what not). Is there something I can do to remedy this situation?

Thanks for any help with this matter

2
Please search Google for the error message you got. You will immediately find lots of information about PostgreSQL, Mac OS X, and unix socket issues. See e.g. stackoverflow.com/questions/12032585/…, stackoverflow.com/questions/7369164/…,Craig Ringer

2 Answers

1
votes

Have you tried this on the command line $export PGHOST=localhost