postgres password

Started by Jasbinder Balialmost 20 years ago7 messagesgeneral
Jump to latest
#1Jasbinder Bali
jsbali@gmail.com

Hello,

Show quoted text

I'm trying to connect to the local postgres database using pgadmin. It
asks for a password that i never set and hence i'm not able to connect
to my local postgres database.
Also, when i click postgresql help option in the Help tab of pgadmin,
the pgadmin screen would close down. Don't know whats going on wrong.

Thanks,
~Jas

#2Scott Marlowe
smarlowe@g2switchworks.com
In reply to: Jasbinder Bali (#1)
Re: postgres password

On Thu, 2006-06-15 at 13:24, Jasbinder Bali wrote:

Hello,

I'm trying to connect to the local postgres database using pgadmin.

It

asks for a password that i never set and hence i'm not able to

connect

to my local postgres database.
Also, when i click postgresql help option in the Help tab of

pgadmin,

the pgadmin screen would close down. Don't know whats going on

wrong.

Take a look here:

http://www.postgresql.org/docs/8.1/static/client-authentication.html

Basically, the password isn't set yet. You may or may not need to set
one depending on how you configure pg_hba.conf

#3Shoaib Mir
shoaibmir@gmail.com
In reply to: Jasbinder Bali (#1)
Re: postgres password

Change the following in pg_hba.conf

host all all 127.0.0.1/32 md5

to

host all all 127.0.0.1/32 trust

and that will let you connect without password and then reload your db
server settings using 'pg_ctl reload'. You can then set the password once
connected to database using

alter user username password 'password'

Once you are done with that now you can switch back to original
authentication mode.

/Shoaib

Show quoted text

On 6/15/06, Jasbinder Bali <jsbali@gmail.com> wrote:

Hello,

I'm trying to connect to the local postgres database using pgadmin. It
asks for a password that i never set and hence i'm not able to connect
to my local postgres database.
Also, when i click postgresql help option in the Help tab of pgadmin,
the pgadmin screen would close down. Don't know whats going on wrong.

Thanks,
~Jas

#4Kevin Kempter
kevin@kevinkempterllc.com
In reply to: Shoaib Mir (#3)
Re: postgres password

You cannot use the postgres account without some tweaks, Sorry I don't remember where I found this info - somewhere in the pgadmin install docs.

Create a new superuser with a password, add connectivity to the pg_hba.conf file if needed and pgadmin should work fine

----- Original Message -----

On Thu, 2006-06-15 at 13:24, Jasbinder Bali wrote:

Hello,

I'm trying to connect to the local postgres database using pgadmin.

It

asks for a password that i never set and hence i'm not able to

connect

to my local postgres database.
Also, when i click postgresql help option in the Help tab of

pgadmin,

the pgadmin screen would close down. Don't know whats going on

wrong.

Take a look here:

http://www.postgresql.org/docs/8.1/static/client-authentication.html

Basically, the password isn't set yet. You may or may not need to set

one depending on how you configure pg_hba.conf

---------------------------(end of broadcast)---------------------------

TIP 1: if posting/reading through Usenet, please send an appropriate

subscribe-nomail command to majordomo@postgresql.org so that your

message can get through to the mailing list cleanly

#5DataIntellect
kevin.kempter@dataintellect.com
In reply to: Kevin Kempter (#4)
Re: postgres password

You cannot use the postgres account without some tweaks, Sorry I
don't remember where I found this info - somewhere in the pgadmin
install docs.

However this works:

Create a new superuser with a password, add connectivity to the pg_hba.conf file if needed and pgadmin should work fine

/Kevin

----- Original Message -----

Change the following in pg_hba.conf

host all all 127.0.0.1/32 md5

to

host all all 127.0.0.1/32
trust

and that will let you connect without password and then reload your db server settings using 'pg_ctl reload'. You can then set the password once connected to database using

alter user username password 'password'
Once you are done with that now you can switch back to original authentication mode.

/Shoaib

On 6/15/06, Jasbinder Bali >;
jsbali@gmail.com> wrote:

Hello,

Show quoted text

I'm trying to connect to the local postgres database using pgadmin. It> asks for a password that i never set and hence i'm not able to connect
to my local postgres database.

Also, when i click postgresql help option in the Help tab of pgadmin,
the pgadmin screen would close down. Don't know whats going on wrong.

Thanks,
~Jas

#6Shoaib Mir
shoaibmir@gmail.com
In reply to: Kevin Kempter (#4)
Re: postgres password

When you are logged in as user 'postgres' then you can run the pg_ctl reload
like this:

pg_ctl -D <path of your datafolder> reload

/Shoaib

Show quoted text

On 6/16/06, LLC <kevin@kevinkempterllc.com> wrote:

You cannot use the postgres account without some tweaks, Sorry I don't
remember where I found this info - somewhere in the pgadmin install docs.

Create a new superuser with a password, add connectivity to the
pg_hba.conf file if needed and pgadmin should work fine

----- Original Message -----

On Thu, 2006-06-15 at 13:24, Jasbinder Bali wrote:

Hello,

I'm trying to connect to the local postgres database using pgadmin.

It

asks for a password that i never set and hence i'm not able to

connect

to my local postgres database.
Also, when i click postgresql help option in the Help tab of

pgadmin,

the pgadmin screen would close down. Don't know whats going on

wrong.

Take a look here:

http://www.postgresql.org/docs/8.1/static/client-authentication.html

Basically, the password isn't set yet. You may or may not need to set

one depending on how you configure pg_hba.conf

---------------------------(end of broadcast)---------------------------

TIP 1: if posting/reading through Usenet, please send an appropriate

subscribe-nomail command to majordomo@postgresql.org so that your

message can get through to the mailing list cleanly

#7Dave Page
dpage@pgadmin.org
In reply to: DataIntellect (#5)
Re: postgres password

________________________________

From: pgsql-general-owner@postgresql.org
[mailto:pgsql-general-owner@postgresql.org] On Behalf Of DataIntellect
Sent: 15 June 2006 20:56
To: pgsql-general@postgresql.org
Subject: Re: [GENERAL] postgres password

You cannot use the postgres account without some tweaks, Sorry I
don't remember where I found this info - somewhere in the pgadmin
install docs.

If it does say that anywhere, I'd love to know where so I can remove it.

However this works:

Create a new superuser with a password, add connectivity to the
pg_hba.conf file if needed and pgadmin should work fine

The postgres account should be quite usable for this. You might need to
edit pg_hba.conf as well of course.

Regards,. Dave