I have the database working now.
Here are the steps I took:
- I rebooted my computer
- I opened the terminal and ran
cd /
- Then I did
ls -la
- Ensured that I could get to
MackintoshHD/usr/local/var/postgres
- Then did
ls -la
- Here I saw the postmaster.pid file
- I ran this command
cp postmaster.pid ~/Desktop
which copied the file to my desktop.I like to do this if I am deleting files. If something does wrong i can put it back - Then I ran this command to remove the file from the postgres
directory
rm -r postmaster.pid
- I went to my pgadmin3 gui and fired it up. and Voila it worked :)
Thanks to @Craig Ringer for his help