Thursday, April 9, 2020

org.postgresql.util.PSQLException: Connection refused


You ran your application to connect to your Postgresql database and received the following exception.


org.postgresql.util.PSQLException: Connection to 129.178.32.11:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.                at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:285)

After you have ensured that the hostname and port are correct and the exception remains you need to modify the postgresql.conf file.

         Uncomment and change listen_address='localhost' to listen_address='*'.

Then check the pg_hba.conf file to ensure your host is allowed to connect to the database by changing IPv4 and IPv6 local connections to:   host   all   all   all   trust

And restart your Postgresql database.


-----------------------------------------------------------------------------------------------------------------
Watch the blessing and loving online channel: SupremeMasterTV live




If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book for free here.







No comments:

Post a Comment