>> psql
psql: error: connection to server at "localhost" (::1), port 5432 failed: Connection refused (0x0000274D
/10061)
Is the server running on that host and accepting TCP/IP connections?
connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused (0x0000274D/10061)
Is the server running on that host and accepting TCP/IP connections?
I can successfully run:
postgres --single -D "C:/Program Files/PostgreSQL/14/data"
I tried restarting the postgres-x64-16 service

listen_addressesset to inpostgresql.conf? Read Connection settings for more information. Either the server is not running, it is running but not listening on port 5432 or it is not listening on the localhost interface. You need to determine which combination of those things is causing the issue.