PostgreSQL on Mac unable to login to database
Posted: Sat Oct 27, 2012 2:28 pm
Hi
I just had my Macbook Pro hard drive replaced. I had a Time Machine backup and just migrated all the data to the new disk.
When I opened PT3 for the first time, a small window with the title "Configure PostgreSQL Database" popped up. In this window I clicked "Browse Databases" and got an error message saying "Unable to login to database(template1). Reason: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.sPGSQL.5432?""
I'm aware of another thread (https://www.pokertracker.com/forums/vie ... 17&t=42906) where this was suggested:
sudo su postgres -c '/Library/PostgreSQL/9.0/bin/pg_ctl -D /Library/PostgreSQL/9.0/data/ restart'
It didn't work for me (as my version of is 8.4 and I appropriately replaced "9.0" for "8.4" in that string). Terminal spitted a somewhat complicated output.
Should I re-install or install a newer version of PostgreSQL? Will I lose previous data when I do this?
Thanks in advance.
Joao
I just had my Macbook Pro hard drive replaced. I had a Time Machine backup and just migrated all the data to the new disk.
When I opened PT3 for the first time, a small window with the title "Configure PostgreSQL Database" popped up. In this window I clicked "Browse Databases" and got an error message saying "Unable to login to database(template1). Reason: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.sPGSQL.5432?""
I'm aware of another thread (https://www.pokertracker.com/forums/vie ... 17&t=42906) where this was suggested:
sudo su postgres -c '/Library/PostgreSQL/9.0/bin/pg_ctl -D /Library/PostgreSQL/9.0/data/ restart'
It didn't work for me (as my version of is 8.4 and I appropriately replaced "9.0" for "8.4" in that string). Terminal spitted a somewhat complicated output.
Should I re-install or install a newer version of PostgreSQL? Will I lose previous data when I do this?
Thanks in advance.
Joao