Re: Exception while accessing database

From: Manohar Bhattarai <manoharbhattarai(at)gmail(dot)com>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: pgsql-admin(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: Exception while accessing database
Date: 2010-06-05 11:34:07
Message-ID: AANLkTinukbrlAGVN1z1JCWp39GMbmERkvuw1TvSUyE_-@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

On Thu, Jun 3, 2010 at 2:14 AM, Kevin Grittner
<Kevin(dot)Grittner(at)wicourts(dot)gov>wrote:

> Manohar Bhattarai <manoharbhattarai(at)gmail(dot)com> 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
>

Thank you. The problem is solved. :) Thanks for your help.
--
Regards,
Manohar Bhattarai (मनोहर भट्टराई)
Blogs:
http://manoharbhattarai.wordpress.com/
http://manoharbhattarai.posterous.com/
http://manoharbhattarai.blogspot.com/
Microblogs:
Twitter :- http://twitter.com/manoharmailme
Identi.ca :- http://identi.ca/manoharbhattarai

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2010-06-05 14:08:41 Re: PITR Recovery Question
Previous Message Gnanakumar 2010-06-05 07:05:37 Re: PITR Recovery Question

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-06-05 13:41:14 Re: Null comparisons and the transform_null_equals run-time parameter
Previous Message Alban Hertroys 2010-06-05 08:34:53 Re: ERROR: character 0x90 of encoding "WIN1252" has no equivalent in "UTF8"