Skip site navigation (1) Skip section navigation (2)

BUG #1779: psql.exe doesn't promt for password yet password authentication fails

From: "Jon Rylands" <jonny(at)rylands(dot)biz>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1779: psql.exe doesn't promt for password yet password authentication fails
Date: 2005-07-21 17:59:57
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      1779
Logged by:          Jon Rylands
Email address:      jonny(at)rylands(dot)biz
PostgreSQL version: 8.0.3
Operating system:   Windows XP SP2
Description:        psql.exe doesn't promt for password yet password
authentication fails


psql.exe doesn't prompt for a password, have tried the all combinations of
the following switches:

-U username
-d dbname
-h localhost

The username is definitely valid (am using postgres username) as can log in
normally using the pgAdmin III graphical utility.

1. Installed PostgreSQL for first time yesterday. System has previously had
PostgreSQL installed by Cygwin by default though I believe this was not
installed as a service and has certainly never been used.
2. Yesterday used fine, ran some scripts via psql.exe to create tables, data
3. Today, dropped the database I had created and recreated a blank
4. Ran psql.exe but could not log in as it did not prompt for a password.

Config files

My pg_hba.conf contains only:

host  all  all  md5

I haven't made any changes to the other pg_ident.conf and postgresql.conf.

Further comments

I spent approx 3 hours trying different things- reinstalling PostgreSQL,
creating different users and trying them, changing the password but with no
luck.  Spoke to several people in the Postgres IRC channel but all their
suggestions didn't help things.

I understand it my be difficult or impossible to recreate this bug and as a
software developer I know its infuriating to receive bug reports which you
cannot re-create but I believe it should be logged as I really feel I've
looked in many locations for the the solution (and to see if I was being
stupid), also have checked Google and I see other people with the same
problem on Windows with no solution either.

If you require any additional information, drop me an email.

Jon Rylands.

pgsql-bugs by date

Next:From: jwDate: 2005-07-22 05:47:36
Subject: abstime bug
Previous:From: Magnus HaganderDate: 2005-07-20 18:09:41
Subject: Re: BUG #1775: UTF8 to ISO does not convert the german "sharp s" (&szlig;)

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group