Answers for "pg::connectionbad - could not connect to server: connection refused is the server running on host "127.0.0.1" and accepting tcp/ip connections on port 5432?"

7

psql: error: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

Try running to verify its working:

sudo service postgresql start
Posted by: Guest on May-27-2021
0

[08001] Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. java.net.ConnectException: Connection refused: connect.

org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Posted by: Guest on December-25-2020

Code answers related to "pg::connectionbad - could not connect to server: connection refused is the server running on host "127.0.0.1" and accepting tcp/ip connections on port 5432?"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language