From: Adam Radlowski <adamr@informatyka.gdansk.pl>
To: ankit.mehrotra@tcs.com
Cc: pgsql-admin@postgresql.org
Subject: Re: problem in logging into database
Date: Thu, 07 Dec 2006 15:31:55 +0100
Message-ID: <457825DB.3060503@informatyka.gdansk.pl> (raw)
In-Reply-To: <OF59897638.78A16320-ON6525723D.004A5A66-6525723D.004B7A52@tcs.com>
References: <OF59897638.78A16320-ON6525723D.004A5A66-6525723D.004B7A52@tcs.com>
Did You specified the database ? In PostgreSQL You are logging into
database, not into DBMS, like in MySQL.
For test users try template1 first, for example psql -h yourhost -U
somebody -d template1
Did You grant those users rights to database wchich they are connecting
to ?
Regards
Adam
ankit.mehrotra@tcs.com wrote:
>
>
> I am new to using postgres. I working on version 8.0.
>
> I have created a number of users in the database but I am not able to
> log into it using any of them, where in logging into using user
> postgres is successfull .... the commands that i am using are
>
> -- createuser -a -d -P "username"
>
> for logging into , i am using
> -- psql -U "username"
>
> In all the references online, it says that the process shud work.
> The postmaster service and databases are running.
>
>
>=====-----=====-----=====
>Notice: The information contained in this e-mail
>message and/or attachments to it may contain
>confidential or privileged information. If you are
>not the intended recipient, any dissemination, use,
>review, distribution, printing or copying of the
>information contained in this e-mail message
>and/or attachments to it are strictly prohibited. If
>you have received this communication in error,
>please notify us by reply e-mail or telephone and
>immediately and permanently delete the message
>and any attachments. Thank you
>
>
>
>
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: adamr@informatyka.gdansk.pl, ankit.mehrotra@tcs.com
Subject: Re: problem in logging into database
In-Reply-To: <457825DB.3060503@informatyka.gdansk.pl>
References: <OF59897638.78A16320-ON6525723D.004A5A66-6525723D.004B7A52@tcs.com> <457825DB.3060503@informatyka.gdansk.pl>
* 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