pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jaime Casanova <jaime@2ndquadrant.com>
To: Akul Gupta <akulgupta2008@gmail.com>
Cc: bugs@postgresql.org
Subject: Re: question
Date: Wed, 5 May 2010 09:23:45 -0500
Message-ID: <l2n3073cc9b1005050723n155f157ega2e9bb5b6549b386@mail.gmail.com> (raw)
In-Reply-To: <k2j8614b2451005042143hfe37c6c8p90a5b03646ba11c0@mail.gmail.com>
References: <k2j8614b2451005042143hfe37c6c8p90a5b03646ba11c0@mail.gmail.com>

On Tue, May 4, 2010 at 11:43 PM, Akul Gupta <akulgupta2008@gmail.com> wrote:
> sir, i m facing a problem.
> While conneting through pgsql from PHP, it asks for a password.
> While i have not given any password at the time of installation.
> So, please tell me the solution.
> Reply as soon as possible.
> I am waiting.
>

The best you can do is to edit pg_hba.conf and add a line like this:

local       all        all                                               trust

connect to pgsql as postgres user and execute ALTER ROLE
user_you're_connecting_to_in_app  PASSWORD 'yourpassword';

then add to pg_hba.conf a line like this:

host       dbname username                   ip_web_server/32           md5


-- 
Jaime Casanova         www.2ndQuadrant.com
Soporte y capacitación de PostgreSQL



view thread (7+ messages)  latest in thread

Message-ID: <l2n3073cc9b1005050723n155f157ega2e9bb5b6549b386@mail.gmail.com>
Permalink:  ../l2n3073cc9b1005050723n155f157ega2e9bb5b6549b386@mail.gmail.com/
Also on:    postgresql.org/message-id/l2n3073cc9b1005050723n155f157ega2e9bb5b6549b386@mail.gmail.com

 · 

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-bugs@postgresql.org
  Cc: jaime@2ndquadrant.com, akulgupta2008@gmail.com, bugs@postgresql.org
  Subject: Re: question
  In-Reply-To: <l2n3073cc9b1005050723n155f157ega2e9bb5b6549b386@mail.gmail.com>
  References: <k2j8614b2451005042143hfe37c6c8p90a5b03646ba11c0@mail.gmail.com> <l2n3073cc9b1005050723n155f157ega2e9bb5b6549b386@mail.gmail.com>

* 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