Skip site navigation (1) Skip section navigation (2)

Re: Default password

From: Fernando Hevia <fhevia(at)gmail(dot)com>
To: calibration <calibration(at)cargolux(dot)com>
Cc: pgadmin-support(at)postgresql(dot)org
Subject: Re: Default password
Date: 2009-05-06 18:06:22
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgadmin-support
On Wed, May 6, 2009 at 11:30 AM, calibration <calibration(at)cargolux(dot)com>wrote:

>  Dear Support,
> We have Postgresql 8.1
> It is the default database installed with our temperature datalogger
> LogWareIII from Hart Scientific.
> I have some troubles with this software and I have tried to enter in the
> PostgreSQL software. I have launch the application pgadminIII but it
> requests a Password. I have never installed a password so I think it's the
> default password. Could you please give me this information?

Your problem is not pgAdmin related which is what this list is about.
Anyway, Postgres doesn't have a default password. If your database runs on a
Linux server as root you can su to postgres user and then use psql to
connect to the database. Once connected you can change postgres password to
whatever you like in order to be able to login through pgAdmin.

ALTER USER postgres WITH PASSWORD = 'mysecretpass';

On Windows servers the postgres user password is required upon installing.
When lost it isn't recoverable.
Nevertheless there is a little trick to gain access to the database:

Modify file pg_hba.conf and add or change the line:
host    all    all    trust

Restart the postgres service and now login with psql or pgAdmin with user
postgres. None or any password will do as it will not be checked.
After changing the password modify again the line in pg_hba.conf to:
host    all    all    md5

Restart the postgres service and you are back on track.... hopefully.


In response to

pgadmin-support by date

Next:From: Kieran McCuskerDate: 2009-05-08 09:22:29
Subject: Beta 3
Previous:From: Dave PageDate: 2009-05-06 15:12:58
Subject: pgAdmin v.1.10.0 Beta 3 now available

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group