pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedForgot admin pw on initialization/install RH 7.3/PGSQL7.2
3+ messages / 3 participants
[nested] [flat]
* Forgot admin pw on initialization/install RH 7.3/PGSQL7.2
@ 2002-05-24 03:20 Jeff Kowalczyk <jtk@adelphia.net>
2002-05-24 03:48 ` Re: Forgot admin pw on initialization/install RH 7.3/PGSQL7.2 Mark McEahern <marklists@mceahern.com>
2002-05-24 11:44 ` Re: Forgot admin pw on initialization/install RH 7.3/PGSQL7.2 Richard Poole <rp@guests.deus.net>
0 siblings, 2 replies; 3+ messages in thread
From: Jeff Kowalczyk @ 2002-05-24 03:20 UTC (permalink / raw)
To: pgsql-admin
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.
Thanks.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Forgot admin pw on initialization/install RH 7.3/PGSQL7.2
2002-05-24 03:20 Forgot admin pw on initialization/install RH 7.3/PGSQL7.2 Jeff Kowalczyk <jtk@adelphia.net>
@ 2002-05-24 03:48 ` Mark McEahern <marklists@mceahern.com>
1 sibling, 0 replies; 3+ messages in thread
From: Mark McEahern @ 2002-05-24 03:48 UTC (permalink / raw)
To: Jeff Kowalczyk <jtk@adelphia.net>; pgsql-admin
[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
-
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Forgot admin pw on initialization/install RH 7.3/PGSQL7.2
2002-05-24 03:20 Forgot admin pw on initialization/install RH 7.3/PGSQL7.2 Jeff Kowalczyk <jtk@adelphia.net>
@ 2002-05-24 11:44 ` Richard Poole <rp@guests.deus.net>
1 sibling, 0 replies; 3+ messages in thread
From: Richard Poole @ 2002-05-24 11:44 UTC (permalink / raw)
To: pgsql-admin
On Thu, May 23, 2002 at 11:20:27PM -0400, Jeff Kowalczyk wrote:
> 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.
It's well described in Chapter 4 of the Administrators' Guide.
Find your pg_hba.conf file (in your data directory;
rpm -ql postgresql | grep pg_hba will find it for you) and edit it
so that you can connect with no password (add a line like
local all trust
above the other lines), then connect and set a password of your
choice, then edit pg_hba.conf back. You'll need to do "pg_ctl reload"
to get Postgres to see your changes to pg_hba.conf .
Richard
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2002-05-24 11:44 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-05-24 03:20 Forgot admin pw on initialization/install RH 7.3/PGSQL7.2 Jeff Kowalczyk <jtk@adelphia.net>
2002-05-24 03:48 ` Mark McEahern <marklists@mceahern.com>
2002-05-24 11:44 ` Richard Poole <rp@guests.deus.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox