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

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 (view raw or flat)
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

pgsql-interfaces by date

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

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