Postgres Connection Fixes
If you see Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections?, check these.
1. Start Postgres Service
Postgres doesn't start automatically on some installs.
MacOS (Homebrew):brew services start postgresql
2. Check the Log File
Often the lock file postmaster.pid prevents startup after a crash. Deleting it (carefully) can fix the issue.
rm /usr/local/var/postgres/postmaster.pid