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

Re: pg_dump/pg_dumpall

From: "Relyea, Mike" <Mike(dot)Relyea(at)xerox(dot)com>
To: <acuselton(at)lbl(dot)gov>, <pgsql-novice(at)postgresql(dot)org>
Subject: Re: pg_dump/pg_dumpall
Date: 2007-08-10 19:12:24
Message-ID: (view raw or whole thread)
Lists: pgsql-novice
Try adding "-U postgres" to connect as the correct user.

-----Original Message-----
From: pgsql-novice-owner(at)postgresql(dot)org
[mailto:pgsql-novice-owner(at)postgresql(dot)org] On Behalf Of Andrew C.
Sent: Friday, August 10, 2007 2:49 PM
To: pgsql-novice(at)postgresql(dot)org
Subject: [NOVICE] pg_dump/pg_dumpall

  I was just trying to get a live backup of my database and had the
following error: 

uselton]# pg_dumpall   > /tmp/osp5_pgsql.dump
pg_dumpall: could not connect to database "template1": FATAL:  Password
authentication failed for user "root"

If it really is asking for the 'root' password I am certainly giving it
correctly.  I am root as I issue the command as well.  I've tried a few
other guesses at what it might _really_ be wanting (including using an
explicit '-h host -p port'), but with no better luck.  Any hints would
be most appreciated.

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?


In response to

pgsql-novice by date

Next:From: Richard Broersma JrDate: 2007-08-10 19:13:31
Subject: Re: pg_dump/pg_dumpall
Previous:From: Andrew C. UseltonDate: 2007-08-10 18:49:01
Subject: pg_dump/pg_dumpall

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