pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sandhya <sandhyar@amiindia.co.in>
To: postgre <pgsql-admin@postgresql.org>
Cc: sandhya <sandhyar@amiindia.co.in>
Subject: Re: reg db access from windows
Date: Wed, 4 Jan 2006 18:36:43 +0530
Message-ID: <017901c6112f$b5dbe4e0$cd00000a@amiindiahjwbgh> (raw)
References: <014401c6112c$f6ccfbe0$cd00000a@amiindiahjwbgh>

If i am using local host......Should we not use IP addree of that .
like:
char ConnInfo[]={"dbname=pilot user=postgres password=megarac host=localhost port=5432"};

When iam giving host = 10.9.8.54(local ip where the DB is running)...The following error iam getting

Connection to database failed
FATAL:  no pg_hba.conf entry for host "10.0.0.205", user "postgres", database "pilot", SSL off
Press any key to continue

Please tell me why is it so?

-Sandhya


  ----- Original Message ----- 
  From: sandhya 
  To: postgre 
  Cc: sandhya 
  Sent: Wednesday, January 04, 2006 6:17 PM
  Subject: [ADMIN] reg db access from windows


  Hi...
   When i am trying to connect to the database in the local windows system where database server is running as service
  I am getting the following error message.

  Connection to database failed
  FATAL:  no pg_hba.conf entry for host "10.0.0.205", user "postgres", database "pilot", SSL off
  Press any key to continue

  The following is there in pg_hba.conf.sample file

  @authcomment@

  # TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD

  @remove-line-for-nolocal@# "local" is for Unix domain socket connections only
  @remove-line-for-nolocal@local   all         all                               @authmethod@
  # IPv4 local connections:
  host    all         all         127.0.0.1/32          @authmethod@
  # IPv6 local connections:
  host    all         all         ::1/128               @authmethod@


  Please tell me what i need to do.I used it in Linux and working fine.This is first time i am working in windows.
  Please suggest me how to proceed.

  Thank you...

  -Sandhya

view thread (3+ messages)  latest in thread

Message-ID: <017901c6112f$b5dbe4e0$cd00000a@amiindiahjwbgh>
Permalink:  ../017901c6112f$b5dbe4e0$cd00000a@amiindiahjwbgh/
Also on:    postgresql.org/message-id/017901c6112f$b5dbe4e0$cd00000a@amiindiahjwbgh

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: sandhyar@amiindia.co.in
  Subject: Re: reg db access from windows
  In-Reply-To: <017901c6112f$b5dbe4e0$cd00000a@amiindiahjwbgh>
  References: <014401c6112c$f6ccfbe0$cd00000a@amiindiahjwbgh> <017901c6112f$b5dbe4e0$cd00000a@amiindiahjwbgh>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox