Обсуждение: Forgot Root Password

Поиск
Список
Период
Сортировка

Forgot Root Password

От
"Kranti K K Parisa™"
Дата:
Hi,

Can anyone suggest a way to retrieve/update the postgres root password ?


thanks in advance

--

Best Regards
Kranti Kiran Kumar Parisa
M: +91 - 9391 - 438 - 738
+91 - 9849 - 625 - 625

Re: Forgot Root Password

От
Ray Stell
Дата:
On Sat, Apr 26, 2008 at 11:00:35AM +0530, Kranti K K Parisa? wrote:
> Can anyone suggest a way to retrieve/update the postgres root password ?


edit pg_hba.conf so that localhost connections from localhost are trusted maybe like
this:

host    all         all         127.0.0.1/32          trust

you have to restart, but then you can do an alter user and so can all the other local
users.

Re: Forgot Root Password

От
Craig McElroy
Дата:
Also, if you wish to avoid a full restart of the database, this change
would be picked up by a "pg_ctl reload" as well.

Cheers,
-craig

---
Craig A. McElroy
Contegix LLC
Beyond Managed Hosting(r) for Your Enterprise

On Apr 26, 2008, at 7:34 AM, Ray Stell wrote:
> On Sat, Apr 26, 2008 at 11:00:35AM +0530, Kranti K K Parisa? wrote:
>> Can anyone suggest a way to retrieve/update the postgres root
>> password ?
>
>
> edit pg_hba.conf so that localhost connections from localhost are
> trusted maybe like
> this:
>
> host    all         all         127.0.0.1/32          trust
>
> you have to restart, but then you can do an alter user and so can
> all the other local
> users.
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin


Re: Forgot Root Password

От
"Joshua D. Drake"
Дата:
Ray Stell wrote:
> On Sat, Apr 26, 2008 at 11:00:35AM +0530, Kranti K K Parisa? wrote:
>> Can anyone suggest a way to retrieve/update the postgres root password ?
>
>
> edit pg_hba.conf so that localhost connections from localhost are trusted maybe like
> this:
>
> host    all         all         127.0.0.1/32          trust
>
> you have to restart, but then you can do an alter user and so can all the other local
> users.

You do not need to restart, just reload.

pg_ctl -D data reload

Joshua D. Drake



Re: Forgot Root Password

От
Tom Lane
Дата:
Ray Stell <stellr@cns.vt.edu> writes:
> On Sat, Apr 26, 2008 at 11:00:35AM +0530, Kranti K K Parisa? wrote:
>> Can anyone suggest a way to retrieve/update the postgres root password ?

> edit pg_hba.conf so that localhost connections from localhost are
> trusted maybe like this:

> host    all         all         127.0.0.1/32          trust

> you have to restart, but then you can do an alter user and so can all
> the other local users.

"ident" mode might be a safer option.

            regards, tom lane