Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id E0B40632246 for ; Wed, 5 May 2010 11:24:12 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 92422-01 for ; Wed, 5 May 2010 14:24:04 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f228.google.com (mail-bw0-f228.google.com [209.85.218.228]) by mail.postgresql.org (Postfix) with ESMTP id AD57C632950 for ; Wed, 5 May 2010 11:24:05 -0300 (ADT) Received: by bwz28 with SMTP id 28so2786568bwz.34 for ; Wed, 05 May 2010 07:24:03 -0700 (PDT) Received: by 10.204.127.90 with SMTP id f26mr8152776bks.78.1273069441054; Wed, 05 May 2010 07:24:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.112.11 with HTTP; Wed, 5 May 2010 07:23:45 -0700 (PDT) In-Reply-To: References: From: Jaime Casanova Date: Wed, 5 May 2010 09:23:45 -0500 X-Google-Sender-Auth: 997d2daa93b89526 Message-ID: Subject: Re: question To: Akul Gupta Cc: bugs@postgresql.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201005/32 X-Sequence-Number: 26694 On Tue, May 4, 2010 at 11:43 PM, Akul Gupta wrote= : > sir, i m facing a problem. > While conneting through pgsql from PHP,=C2=A0it 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 tr= ust 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 --=20 Jaime Casanova www.2ndQuadrant.com Soporte y capacitaci=C3=B3n de PostgreSQL