Question about jdbc
От | Natali Kolker |
---|---|
Тема | Question about jdbc |
Дата | |
Msg-id | 35815CC9.E1C8A55B@u.washington.edu обсуждение исходный текст |
Ответы |
Re: [GENERAL] Question about jdbc
|
Список | 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 по дате отправления: