Re: Fwd: resetting superuser password

Поиск
Список
Период
Сортировка
Искать
От
mad
Тема
Re: Fwd: resetting superuser password
Дата
Msg-id
1131558609.146035.262450@g44g2000cwa.googlegroups.com
Ответ на
Список
Дерево обсуждения
Fwd: resetting superuser password "Marc A. Donis" <mad7@runbox.com>
Re: Fwd: resetting superuser password Martin Fandel <martin.fandel@alphyra-evs.de>
Re: Fwd: resetting superuser password Devrim GUNDUZ <devrim@gunduz.org>
Re: Fwd: resetting superuser password "mad" <mad7@runbox.com>
Thanks to all who replied, and all apologies for the multiple posting
(my fault).

The solution (in postgres 8.0.1):

Edit data/pg_hba.conf to contain the line:

local all postgres trust

Then su to unix user postgres and restart postges with:

> bin/pg_ctl restart -D /usr/local/pgsql/data -m fast

and finally, login to postgres with:

> psql -U postgres -d template1

and do

alter user postgres with encrypted password 'newpass';

Remove the line added to pg_hba.conf, and restart postgres again!
I'm a happy (and very relieved) camper.

Marc

В списке pgsql-admin по дате отправления
От: Jim C. Nasby
Дата:
От: Marcin Giedz
Дата:
FAQ