Process to connect postgresql server from client

To configure remote hosts and users that can connect to the PostgreSQL service, you need to edit the pg_hba.conf file (This file will be in Data directory). In our sample installation, we want to allow users from any host on the local network to access all of the databases on our server. To do this, we add the following line at the end of the file:

host   all   all   192.168.0.0/16   md5

This means that all computers with an IP address that begins 192.168 can access all databases. The simplest way to make this configuration change take effect is to restart the PostgreSQL server.


Comments

Popular posts from this blog

How to connect postgresql database through ODBC driver in excel

Postgresql System files and their uses