Need help after scouting all those issues with postgres and mac 10.8
I installed pg through homebrew (tried with heroku app also but no luck)
which psql --> /usr/local/bin/psql
psql --version --> psql (PostgreSQL) 9.2.4
When starting rails server I get Is the server running locally and accepting connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
When I do pg_ctl -D /usr/local/var/postgres -l logfile start
I get server starting
When I run psql
I get Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Any idea?
Whatever is wrong with my setup I ended adding host: localhost
to my database.yml
and it did the trick. Too much time wasted so it will remain as is for now. Thanks for your help.
Do you have the user "postgres" in the system?
I don't know homebrew but maybe you need:
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
Also postgres user must have write permissions on logs files.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.