Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id E87454759C0 for ; Thu, 23 May 2002 23:49:15 -0400 (EDT) Received: from mceahern.com (unknown [216.26.162.8]) by postgresql.org (Postfix) with ESMTP id 9F3924758A5 for ; Thu, 23 May 2002 23:49:14 -0400 (EDT) Received: from LAPMARK [64.108.128.59] by mceahern.com with ESMTP (SMTPD32-7.10) id A830EA300C2; Thu, 23 May 2002 23:49:04 -0400 From: "Mark McEahern" To: "Jeff Kowalczyk" , Subject: Re: Forgot admin pw on initialization/install RH 7.3/PGSQL7.2 Date: Thu, 23 May 2002 22:48:34 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <000001c202d1$f44cf5e0$6401a8c0@laptop> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Archive-Number: 200205/190 X-Sequence-Number: 4365 [Jeff Kowalczyk] > I made a dumb mistake, and forgot to write down the autogenerated > administrator password when I first started the Postgres database on > RedHat 7.3. I'm having a hard time finding information on how to do this > online, and it's a tricky term to search the archives for, as well. > > I don't have any data I need to save (obviously), so how do I nuke the > data and configuration (particularly the admin user) created during the > initialization startup script? I don't want to go randomly deleting > postgres' .conf files when I don't know what I'm looking for. You could delete the primary database cluster, which I think is typically stored here: /usr/local/pgsql/data/ You might want to just move it. Then try using initdb to create a new primary database cluster. I'm fairly new to PostgreSQL, so there may be a more subtle approach I'm not thinking of. Cheers, // mark -