BeastCoder
BeastCoder

Reputation: 2741

could not connect to server: Connection refused - pgadmin4 - postgresql

I am getting some errors when trying to connect to a postgresql database.

Version: postgresql 12.3

Here are some screenshots:

enter image description here

This is what it looks like on the side bar. Instead of the server with a red x, it should be the postgresql elephant mascot.

enter image description here

Here is the error I am getting.

What I've done to try and fix it:

I've looked through a bunch of SO posts and stumbled across this one. I checked that the postgresql.conf file had listen_adresses = '*', which it did:

enter image description here

Notes:

I am following a video (I have gotten to that timestamp) for this, and have not yet gotten to a point where a terminal would be used. The video show's this:

enter image description here

where as I see what is above. I believe I may have to start the server, but I am not sure how.

Thanks!

Upvotes: 0

Views: 881

Answers (1)

BeastCoder
BeastCoder

Reputation: 2741

I have found a solution, it is definitely not the best one by any means, though.

All I did was just reinstall postgres. I am not going to mark this answer as correct, however, unless it turns out that this is, in fact, the only way to solve this problem.

Upvotes: 0

Related Questions