Skip to content

connect ECONNREFUSED 127.0.0.1:5432 #656

Answered by akiver
SPbb0451 asked this question in Q&A
Discussion options

You must be logged in to vote

Assuming you are on Windows, here are some things you can do:

  1. Make sure the postgresql service is running
    1. Search for services from the Windows search bar and open the Services app
    2. Find the service postgresql-x64-16 and ensure it's running. If it's missing, it means PostgreSQL has not been installed correctly.

  1. Make sure the port is correct. The default port is 5432, maybe you changed it during the installation like on the screenshot in the installation instructions? (it's 5433)
    1. Open a terminal (cmd.exe)
    2. Type psql -h 127.0.0.1 -U postgres -p 5432 and press enter. If you have the "Connection refused" error try with the port 5433.
  2. Re-install PostgreSQL and make sure to set the port to

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@SPbb0451
Comment options

@akiver
Comment options

Answer selected by SPbb0451
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants