After I installed Mavericks my postgres configuration seems completely messed up. I installed the dev tools for Maverick from xcode and I've tried putting host:localhost in the db yml but still if I try to run rails s:
could not connect to server: No such file or directory (PGError)
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
If I try to start postgres manually with:
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
I get: server starting
but pg_ctl -D /usr/local/var/postgres status
returns pg_ctl: no server running
??
I tried to reinstall pg gem and reload postgresql but to no avail. brew info postgres
returns:
postgresql: stable 9.3.1
http://www.postgresql.org/
Conflicts with: postgres-xc
/usr/local/Cellar/postgresql/9.3.1 (2919 files, 39M) *
Since I did brew reinstall postgress I know get this:
The data directory was initialized by PostgreSQL version 9.2,
which is not compatible with this version 9.3.1.
I have a postgres query tool that doesn't seem to have any trouble connecting so I know the data is still there.
I would really appreciate if someone can help me figure this out, thanks.