Postgresql server connectivity configurations from other clients or servers

Problem: When i am trying to read the data of postgresql from other server (XHQ Connection Group), got the below error. To fix this i have done the below step. 

Error Connecting to database FATAL : no pg_hba.conf entry for host"18.142.0.78", user"postgres", database"UNLSH_WB_COLLECTIONS". 


Solution: To fix this problem i have added below line under "# IPv4 local connections:" in "pg_hba.conf" file in postgresql server and also opened postgresql port "5432" at firewall level (both inbound and outbound). 

host    all         all         52.77.217.218/24     trust


File "pg_hba.conf" will be available in postgresql data folder. To find the data folder, we have to run the sql command "SHOW data_directory;" in postgresql database.


Comments

Popular posts from this blog

How to connect postgresql database through ODBC driver in excel

Postgresql System files and their uses