Skip to content

pg-connections

2 Posts

PostgreSQL Socket '.s.PGSQL.5432': No Such File or Directory

'.s.PGSQL.5432: No such file or directory' means psql looked for a Unix socket in one directory and found nothing. The server is stopped, on another port, or puts its socket somewhere else. Here's how to tell which, and fix it.

PostgreSQL 'Connection Refused' on Port 5432: How to Fix It

Connection refused on port 5432 means nothing accepted TCP at that address. Server down, wrong port, listen_addresses, or a container port nobody published: how to tell which in two minutes, and the fix for each.