newbie to both Java and psql trying jdbc-examples

From: Lam Nguyen <lnguyen(at)osf1(dot)gmu(dot)edu>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: newbie to both Java and psql trying jdbc-examples
Date: 1998-06-17 05:42:58
Message-ID: Pine.OSF.3.96.980617013502.28312B-100000@osf1.gmu.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces


Hi,
Following the directions closely and I still can't get the
examples going. Any pointers are extremely helpfull, as I am running
out of FAQs. I am trying to run :

/usr/src/pgsql/postgresql-6.3.2/src/interfaces/jdbc$ java
-Djdbc.driver=postgresql.Driver example.blobtest jdbc:postgresql:mydb
mylogin mypassword debug

my pg_hba_conf.sample:

local all password
host all 127.0.0.1 255.255.255.255 password

and the result:

PostgreSQL blobtest v6.3 rev 1

DriverManager.initialize: jdbc.drivers = null
JDBC DriverManager initialized
registerDriver:
driver[className=postgresql.Driver,context=null,postgresql(dot)Driver(at)80c81f9]
Connecting to Database URL = jdbc:postgresql:mydb
DriverManager.getConnection("jdbc:postgresql:mydb")
trying
driver[className=postgresql.Driver,context=null,postgresql(dot)Driver(at)80c81f9]
-- listing properties --
password=mypassword
Protocol=postgresql
user=mylogin
PGDBNAME=mydb
java.sql.SQLException: User authentication failed
at postgresql.Connection.<init>(Connection.java:229)
at postgresql.Driver.connect(Driver.java:87)
at java.sql.DriverManager.getConnection(DriverManager.java:91)
at
java.sql.DriverManager.getConnection(DriverManager.java:134)
at example.blobtest.<init>(blobtest.java:42)
at example.blobtest.main(blobtest.java:188)
getConnection failed: java.sql.SQLException: User authentication
failed
Exception caught.
java.sql.SQLException: User authentication failed
java.sql.SQLException: User authentication failed
at postgresql.Connection.<init>(Connection.java:229)
at postgresql.Driver.connect(Driver.java:87)
at java.sql.DriverManager.getConnection(DriverManager.java:91)
at
java.sql.DriverManager.getConnection(DriverManager.java:134)
at example.blobtest.<init>(blobtest.java:42)
at example.blobtest.main(blobtest.java:188)

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Peter Mount 1998-06-17 07:02:46 Re: [INTERFACES] newbie to both Java and psql trying jdbc-examples
Previous Message Jose' Soares Da Silva 1998-06-16 11:00:05 Re: [HACKERS] User authentification failed