After restarting my MacBook Pro I am unable to start the database server:
could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
I checked the logs and the following line appears over and over again:
FATAL: database files are incompatible with server
DETAIL: The data directory was initialized by PostgreSQL version 9.2, which is not compatible with this version 9.0.4.
9.0.4 was the version that came preinstalled on the mac, 9.2[.4] is the version I installed via Homebrew.
As mentioned, this used to work before the restart, so it can't actually be a compiling issue. I also re-ran initdb /usr/local/var/postgres -E utf8
and the file still exists.
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
- and the response isserver starting
– Pleaderpg_ctl
I'm pretty sure you're going to find 2 copies. And the one that matcheswhich pg_ctl
will be the old version, and the other will be the new version. – Pyrochemicalpg_ctl --version
givespg_ctl (PostgreSQL) 9.2.4
– Pleaderps aux | grep postgres
yields nothing, and as I mentioned, it used to work just fine before - so I doubt that I messed up the installation. You think a reinstallation is the best way to go? – PleaderServer.app
and hidden it to use a non-default port and unix socket directory. Finally! – Ardenia