Issue when accessing PostgreSQL 15 in pgAdmin4 - postgresql

Getting the following error when trying to access PostgreSQL 15 in pgAdmin 4 for the first time. Is this because I've messed up the passwords?
Error message: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? connection to server at "localhost" (::1),port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections?
Any advice on solutions/ next steps would be ideal!

Related

psql: error: connection to server at "localhost"

Let me first mention I don't have admin privilege on my PC, So I could not install PostgreSQL with the normal process. I just download the binary files from here enterprisedb.com/download-postgresql-binaries,
and added it to environment variable paths.
My problem when I try to start a new server from pgAdmin it gives me the below 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 searched a lot for a solution
The first recommendation I got is to restart postgress from windows services but I couldn't find it.
Second recommendation was to edit the psogress config file but also I can't find it at all they say that I can find it in the main directory of postgress.

Unable to connect to POSTGRES and showing error

I have a problem to connect server for Postgres after I installed it. When I try to psql -U postgres -h localhost it show this error:
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 have tried start/restart the postgresql-X64 service but it still show the error.

Can't connect to database PostgreSQL14. Can't start PostgreSQL on Windows services

When I starting to connecting, I catch error:
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?
PostgreSQL can't start on Windows services. (On my PC installed Win10)
This solution didn't help - https://stackoverflow.com/a/27568135/17655569
Also I tried reinstall with this instruction (https://webkul.com/blog/postgresql-windows-installation-problem-running-post-install-step-installation-may-not-complete-correctly/), unfortunately, this method help before the first computer reboot
Maybe anybody occurred with the same problem?

Can't connect to PostgreSQL 12 Server after installation

so I tried to connect PostgreSQL 12 Server to to create a database for an online shop that I'm building. When it asks me to "enter the password for the user 'postgres' to connect the server - "PostgreSQL 12" i enter the one i provided during the installation but I'm getting the following error:
i get the following error: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?...

Unable to push local database to heroku using pg:push

I am working on a Flask project, and I am ready to deploy my database to Heroku, but I am getting the following error when I try to push my local database to my PG database. I have searched through other StackOverflow posts, but no proposed solutions seem to work. Here is the error message:
pg_dump: [archiver (db)] connection to database "database-name" failed: could not connect to server: Connection refused
`Is the server running on host "localhost" (::1) and accepting`
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (fe80::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
pg_restore: [archiver] input file is too short (read 0, expected 5)
psql: could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (fe80::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
! Heroku client internal error.
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new
Error: psql failed. exit status 512, output: "" (RuntimeError)
Command: heroku pg:push database-name DATABASE_URL --app app-name
Version: heroku-toolbelt/3.39.5 (x86_64-darwin10.8.0) ruby/1.9.3
Error ID: 020bc5cc53ec48298f24125be8705f53
Any insight would be much appreciated. I have been struggling with this for several hours. Thanks!