Re: No password supplied error when using pg_dump

From: JORGE MALDONADO <jorgemal1960(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: No password supplied error when using pg_dump
Date: 2016-11-18 00:42:22
Message-ID: CAAY=A7900-LJjpNv5w--twC9H_J+VWG8kxkYuXG7Qa=APBMLEA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Great!!!
I hadn´t noticed the port number. I have 2 versions of PostgreSQL running
on the same server, that is why I am using port 5433 for the second one.

Thanks.

On Wed, Nov 16, 2016 at 10:31 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> JORGE MALDONADO <jorgemal1960(at)gmail(dot)com> writes:
> > I am trying to run pg_dump to backup my PostgreSQL DB and I am getting a
> > "fe_sendauth: no pssword supplied" error message. This is a Windows
> Server
> > 2012 environment and I am issuing pg_dump from a command prompt.
>
> > The command is as follows:
> > pg_dump -E win1252 -f d:/respaldos/chartsclub/basedatos/CC.backup -F p
> -n
> > chartsclub -h localhost -U postgres -w chartsclub
>
> > The content of pgpass.conf is:
> > localhost:5433:chartsclub:postgres:mypassword
>
> Um ... 5433 is not the default port number in a standard build.
> Unless you've built with that chosen as the compiled-in default,
> this invocation of pg_dump will be trying to connect to port 5432,
> and therefore will not use that pgpass entry.
>
> regards, tom lane
>

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Dron 2016-11-23 07:00:54 Permission denied error for initdb
Previous Message Mike 2016-11-17 20:02:21 Re: Advice for first attempt at web-based database app.