Re: problem accessing a database

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: problem accessing a database
Date: 2006-11-03 14:44:05
Message-ID: 20061103144405.GA28470@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

am Fri, dem 03.11.2006, um 15:36:04 +0100 mailte Luca Ferrari folgendes:
> Hi all,
> I've got a database on a server that can be accessed thru the user wwwrun with
> no password. Now I'd like to copy it on my laptop, so I created the wwwrun
> (with no password) and thru pg_dump and pg_restore I copied the database on
> the laptop. The problem is that on the latter I'm unable to log as wwwrun, I
> got:
> [luca(at)fluca:~]$ psql -U wwwrun
> psql: FATAL: Ident authentication failed for user "wwwrun"
>
> What should I change on my laptop to get the database working?

The settings in your pg_hba.conf.
This file contains comments, read this to understand the proper content.
I guess, you want change the method to trust.

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47215, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-11-03 14:58:04 Re: start up and shut down script
Previous Message Magnus Hagander 2006-11-03 14:43:06 Re: Counting records in a PL/pgsql cursor