EnterpriseDB: The Enterprise Postgres Company Postgres Plus Forums: The PostgreSQL Open Source Database from EnterpriseDB
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 

Lost postgres password  XML

Forum Index » Standard Server
Author Message
Jemmy_C

New member

Joined: 13 Jan 2009 17:36:50
Messages: 4
Offline

How do I recover a lost postgres superuser password or set a new one?
Muhammad_F

Senior member
[Avatar]

Joined: 25 May 2005 15:59:57
Messages: 107
Offline

Hi Jemmy,

You can connect to the server by changing the authentication method to trust in pg_hba.conf file. Once connected change your password from within psql. Revert back the authentication method if required.

Regards,
Muhammad Farrukh
Jemmy_C

New member

Joined: 13 Jan 2009 17:36:50
Messages: 4
Offline

That works. Thanks.
I had tried a tip that said to put "local all all trust" at the top of pg_hba.conf, which did not work. The existing lines at the end of the file seemed to override it. Just changing the authentication in the existing lines from "md5" to "trust" was all I needed to do.
matej_mastnak

New member

Joined: 13 Mar 2010 07:51:35
Messages: 1
Offline

Hi

I can`t setup postgresql-8.4.2-1windows because password is inccorect and i don`t know password...

please help

This message was edited 1 time. Last update was at 13 Mar 2010 08:35:09

scottiebo

Senior member
[Avatar]

Joined: 23 Oct 2005 21:05:02
Messages: 197
Offline


13/03/2010 07:53:29 Subject: Lost postgres password
Hi

I can`t setup postgresql-8.4.2-1windows because password is inccorect and i don`t know password...

please help


First -- You should start a new topic for this... people will find your question more easily that way.

Second, try going into the windows user manager and resetting the 'postgres' user's password from there. Then, when you run the installer enter that password

--Scottie
 
Forum Index » Standard Server
Go to:   
Powered by JForum 2.1.8 © JForum Team