Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id BC6E46333FF for ; Wed, 2 Jun 2010 17:45:04 -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 99109-01-10; Wed, 2 Jun 2010 20:44:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 934836337DC; Wed, 2 Jun 2010 17:44:37 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Wed, 02 Jun 2010 15:44:35 -0500 Message-Id: <4C067C5E0200002500031DBD@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Wed, 02 Jun 2010 15:44:30 -0500 From: "Kevin Grittner" To: "Manohar Bhattarai" , , Subject: Re: Exception while accessing database References: In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/19 X-Sequence-Number: 34797 Manohar Bhattarai wrote: > FATAL: password authentication failed for user "postgres" > But the password is the same that i use to login postgres user in > the terminal. > What could be the problem? When you say "postgres user in the terminal", do you mean logging in to the operating system? If so, that has nothing to do with the database login unless you choose to make it so by having an "ident" entry in the pg_hba.conf file. http://www.postgresql.org/docs/8.3/interactive/client-authentication.html > I am not able to understand how to start creating a new user > and a new database after a fresh installation of postgres. Once you get logged in with the postgres user, that would be the CREATE DATABASE and CREATE USER statements: http://www.postgresql.org/docs/8.3/interactive/sql-createdatabase.html http://www.postgresql.org/docs/8.3/interactive/sql-createuser.html -Kevin