Search code examples
ruby-on-railspostgresqlosx-mountain-lion

can't connect to postgres server with mountain lion


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?


Solution

  • Whatever is wrong with my setup I ended adding host: localhostto my database.ymland it did the trick. Too much time wasted so it will remain as is for now. Thanks for your help.