Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5956

Postgres seems to be working fine except that Port 5432 doesn't accept connections

$
0
0

I've installed postgres both on my WSL version 2 (Ubuntu 24.04) on my Windows desktop and on my Ubuntu24.04 laptop to use with Laravel but none seems to be working, it works fine with any database other than Postgres and I can use postgres normally except that when I try to enter the database on port 5432 -$ psql -h localhost -p 5432 -U postgres -d postgrespsql: error: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refusedIs the server running on that host and accepting TCP/IP connections?It also appears this error when I'm trying to see my Laravel project on my browser, this seems trivial since it gives the same error on both my computers so it must be something that I'm missing since I'm new to Postgres, I've already changed the hba config and the postgres config file but none seems to help, restarting also doesn't seems to fix the problem.

It should let me work on my Laravel project normally or let me access the database through the normal 5432 Postgres port but it doesn't.


Viewing all articles
Browse latest Browse all 5956


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>