PostgreSQL: Why psql can’t connect to server?
The error states that the psql utility can’t find the socket to connect to your database server. Either you don’t have the database service running in the background, or the socket is located elsewhere, or perhaps the pg_hba.conf needs to be fixed. Step 1: Verify that the database is running The command may vary depending … Read more