Question about jdbc - Mailing list pgsql-general

From Natali Kolker
Subject Question about jdbc
Date
Msg-id 35815CC9.E1C8A55B@u.washington.edu
Whole thread Raw
Responses Re: [GENERAL] Question about jdbc  (Peter Mount <pgsqlgen@retep.org.uk>)
List pgsql-general
Hi,


I compiled JDBC  sources ,  that comes with version  6.3 .

When I  am trying to connect to  data base ,

"DriverManager.getConnection("jdbc:postgresql://haver:5432/natali",
"natali", "Elina);"
I got a response:


>
> java.sql.SQLException: User authentication failed
>         at java.lang.Throwable.<init>(Compiled Code)
>         at java.lang.Exception.<init>(Compiled Code)
>         at java.sql.SQLException.<init>(Compiled Code)
>         at postgresql.Connection.<init>(Compiled Code)
>         at postgresql.Driver.connect(Compiled Code)
>         at java.sql.DriverManager.getConnection(Compiled Code)
>         at java.sql.DriverManager.getConnection(Compiled Code)
>         at db.init_database(Compiled Code)
>         at db.main(Compiled Code)
>
My jdbc drivers in dir $CLASSPATH/postgresql,
I created my database with command:
createdb -u natali
Username : natali,
Password: Elina

In perl   I write : $conn = Pg::connectdb("dbname = natali");,
and I have connection.

If somebody can help me , with my  " authentification" problem , I would
really  appriciate it.

Natali Kolker
--

--------------------------------------------------------------------
Natali Kolker
Dept of Molecular Biotechnology, Box 357730   Tel: +1-206-685-7334
University of Washington School of Medicine   Fax: +1-206-685-7301
Seattle, WA 98195-7730, USA                   natali@u.washington.edu



pgsql-general by date:

Previous
From: "Jackson, DeJuan"
Date:
Subject: RE: [GENERAL] crypt compile error
Next
From: eric@gateway.ctlno.com
Date:
Subject: Authentication problem