From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: a really dumb password question
Date: Thu, 22 Jun 2023 11:04:57 -0500
Message-ID: <c2f3b4eb-adba-178d-c198-8ec961808a2f@gmail.com> (raw)
In-Reply-To: <CH2PR05MB679040BB4B347541AC2C1CE4C422A@CH2PR05MB6790.namprd05.prod.outlook.com>
References: <CH2PR05MB679040BB4B347541AC2C1CE4C422A@CH2PR05MB6790.namprd05.prod.outlook.com>
On 6/22/23 10:05, Martin Mueller wrote:
>
> I have a very stupid password question. I don’t know whether a postgres
> database on my Mac has a pass word or not.
>
> I access the database via the Aqua Data Studio frontend as the user
> postgres. I don’t think I ever added a password, and on the authentication
> panel the password box is empty but the Remember Password box is checked.
>
> However on the user panel there is a sequence of black dots for the
> Password and Password confirmation. This suggests that I did set a
> password, but I don’t remember what it is.
>
> How can I undo the damage? Is there some super user way in which I can
> undo the current password and set a new one. The database itself has
> several hundred tables, and I need to find a way to fix my stupid error.
>
> I have a dump of the database. I don’t know whether that is subject to
> the password or not. If it isn’t, I suppose I could start over from scratch.
>
If the database is on your Mac, then edit the pg_hba.conf file, and restart.
local all postgres trust
That should give user "postgres" access with or without a password.
--
Born in Arizona, moved to Babylonia.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ronljohnsonjr@gmail.com
Subject: Re: a really dumb password question
In-Reply-To: <c2f3b4eb-adba-178d-c198-8ec961808a2f@gmail.com>
References: <CH2PR05MB679040BB4B347541AC2C1CE4C422A@CH2PR05MB6790.namprd05.prod.outlook.com> <c2f3b4eb-adba-178d-c198-8ec961808a2f@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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