Skip to main content

Posts

Showing posts from April, 2014

Adding privilege for PostgreSQL to access the databases from any point in network

In my local network each machine may have PostgreSQL database. For accessing the PostgreSQL databases in one machine to any machine, we need to add some permissions to the PostgreSQL configuration file. For accessing PostgreSQL databases in Machine1 to Machine2, we need to change the file pg_hba.conf (C:\Program Files\PostgreSQL\9.2\data). The changes are the following : Add the line on IPv4 local connections : host    all             all             0.0.0.0/0 trust Hence the final code as : # IPv4 local connections: host    all             all             127.0.0.1/32            md5 host    all             all             0.0.0.0/0 trust The file pg_hba.conf has attached here. Just replace the file in...