pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Lewis <mark.lewis@mir3.com>
To: System Consult <systemconsult@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: password authentication failure
Date: Thu, 13 Jul 2006 10:21:59 -0700
Message-ID: <1152811319.1634.13.camel@archimedes> (raw)
In-Reply-To: <e263048e0607130845k537fd9aft3233355d735b0d34@mail.gmail.com>
References: <e263048e0607130845k537fd9aft3233355d735b0d34@mail.gmail.com>

Try to connect to the database using the command-line tool and
specifying the host parameter, to force a network connection (same type
of connection that the JDBC driver uses).

So run:  
psql -h whatever_server_jdbc_uses

If that doesn't work, then you have an authentication problem; read the
PG documentation about configuring authentication with pg_hba.conf.

If it does work, then please supply the version of the driver you're
using, the JDBC URL you're using, a code snippet showing how you're
attempting to connect, and some basic info about your server (version,
host it's running on).

-- Mark Lewis


On Thu, 2006-07-13 at 16:45 +0100, System Consult wrote:
> I was able able to create my database and create a Admin role with a
> password with which i was able to sign on to the database using the
> prompt. However, an attempt to access the database via my java
> application using jdbc gave this response 
>  
> FATAL: password authentication failed for user "Admin"
> 
>  
> 
> please assist 
> 



view thread (9+ messages)

Message-ID: <1152811319.1634.13.camel@archimedes>
Permalink:  ../1152811319.1634.13.camel@archimedes/
Also on:    postgresql.org/message-id/1152811319.1634.13.camel@archimedes

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: mark.lewis@mir3.com, systemconsult@gmail.com
  Subject: Re: password authentication failure
  In-Reply-To: <1152811319.1634.13.camel@archimedes>
  References: <e263048e0607130845k537fd9aft3233355d735b0d34@mail.gmail.com> <1152811319.1634.13.camel@archimedes>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox