Re: Postgres 9.2.4 for Windows (Vista) Dell Vostro 400, re-installation failure PLEASE CAN SOMEONE HELP!!

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: Stephen Brearley <mail(at)stephenbrearley(dot)name>
Cc: 'Alban Hertroys' <haramrae(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org, 'Adrian Klaver' <adrian(dot)klaver(at)gmail(dot)com>
Subject: Re: Postgres 9.2.4 for Windows (Vista) Dell Vostro 400, re-installation failure PLEASE CAN SOMEONE HELP!!
Date: 2013-08-01 09:46:54
Message-ID: 51FA2E8E.3070803@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 01/08/2013 10:27, Stephen Brearley wrote:

> 6) This question about connecting -I think- could be what the problem is. To
> connect, I start pgAdmin and double-click on Server
> groups|Servers|myLocalHost (localhost:5432) which has a red 'X' on it
> (doesn't look good) to which I get a popup 'Error connecting to the server:
> FATAL: password authentication failed for user "SDB"'. You mention the
> pg_hba.conf file -but since I am asked to enter a new password during
> installation, this is reset every time I try to do a reinstall? I am
> thinking that this is not occurring, and I have entered to many wrong
> passwords. For security, it would make sense that you can't reset it just by
> performing a reinstall. Could you elaborate on how to get back in if I have
> locked myself out please, as I think this could..be it?

Hi there,

If you're locked out, you don't have to reinstall - you can do the
following:

(i) Locate pg_hba.conf - this should be in your data directory (not the
installation directory).

(ii) Edit it, and change the connection method for the relevant user
and/or host from "md5" to "trust". - This will let that user connection
without a password.

(iii) Restart the server so the connection method change takes effect.

(iv) Connect, and reset your password (ALTER ROLE....).

(v) Edit pg_hba.conf once more and change the connection method back to
"md5".

(vi) Restart the server once more.

HTH,

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod(at)iol(dot)ie

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Luca Ferrari 2013-08-01 13:14:01 Re: incremental dumps
Previous Message Thomas Kellerer 2013-08-01 09:39:50 Re: Postgres 9.2.4 for Windows (Vista) Dell Vostro 400, re-installation failure PLEASE CAN SOMEONE HELP!!