pgadmin - Canot connect to postgresql server from out -


i want connect postgresql server occur below error. search , find result below after these again error occured

in postgresql.conf change listen_addresses localhost *

in pg_hba.conf change 127.0.0.1/32 0.0.0.0/0

reboot server

error:

could not connect server: connection refused.is server running on host "ip number" , accepting.tcp/ip connections on port 5432?

i suggest should following steps.

  1. check postgresql server running.
  2. check listen_addresses parameter ( postgresql.conf )
  3. check port number of postgresql ( port parameter of postgresql.conf )
  4. check firewall policy of database server , set allow port of postgresql.
  5. if want connect db server, may shoud set pg_hba.conf following :
 # type  database        user            cidr-address            method     local                                                   trust     host           0.0.0.0/0       md5 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -