Forgotten Password
Forgotten Password
От:
Juan Pablo Hernandez <juanpablo.hernandez@usm.cl>
Дата:
Hi, I installed PostgreSQL in my PC (windows XP) a few weeks ago and I can´t remember the password for the user 'postgres' so I can't access the local database. I can uninstall PostgreSQL but I don't know if I will be able to reinstall it since I have the McAfee antivirus installed. Is there a super user in PostgreSQL I can use to change the passwords? Is there another solution? Thank You. -- Juan Pablo Hernández CIMA - UTFSM Av. España 1680, Valparaíso, CHILE www.cima.utfsm.cl Teléfono: (56)(32) 654-712 Fax: (56)(32) 654-714 juanpablo.hernandez@usm.cl
Re: Forgotten Password
От:
Bruno Wolff III <bruno@wolff.to>
Дата:
On Sat, Apr 29, 2006 at 19:15:16 -0400, Juan Pablo Hernandez wrote: > Hi, I installed PostgreSQL in my PC (windows XP) a few weeks ago and I > can´t remember the password for the user 'postgres' so I can't access > the local database. I can uninstall PostgreSQL but I don't know if I > will be able to reinstall it since I have the McAfee antivirus > installed. Is there a super user in PostgreSQL I can use to change the > passwords? Is there another solution? > Thank You. Edit hba.conf to allow postgres to login without a password from some safe location and restart the server. Once you are in change the password, restore hba.conf and restart again.