Re: Problems connecting over tcp-ip BUG?

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: Problems connecting over tcp-ip BUG?
Дата
Msg-id 005f01c1c847$4c60f3a0$807ba8c0@inspiron
обсуждение исходный текст
Ответ на Problems connecting over tcp-ip BUG?  (Fredrik Wendt <fredrik.wendt@linux.se>)
Список pgsql-jdbc
Fredrik,

What version of postgres? Of jdbc ?

Dave

-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Fredrik Wendt
Sent: Saturday, March 09, 2002 8:08 PM
To: pgsql-jdbc@postgresql.org
Subject: [JDBC] Problems connecting over tcp-ip BUG?


Hi all!

I've tried searching both documentation and mailing lists for an answer
to what I'm doing wrong, but I can't find anything.

The problem (summary): I can't connect from another host, using password
or ident.

The setup for password is:

 > cat pg_hba.conf | grep upfab
 > host    upfab   213.64.136.11   255.255.255.0   password

Looking in pg_shadow, the passwd field it shows thePassword.

 > usename |usesysid|usecreatedb|usetrace|usesuper|usecatupd|passwd
 > |valuntil
 >
--------+--------+-----------+--------+--------+---------+------------+-
--------+--------+-----------+--------+--------+---------+------------+-
--------+--------+-----------+--------+--------+---------+------------+-
--------+--------+-----------+--------+--------+---------+------------+-
--------+--------+-----------+--------+--------+---------+------------+-
--------+--------+-----------+--------+--------+---------+------------+-
--------+--------+-----------+--------+--------+---------+------------+-
--------+--------+-----------+--------+--------+---------+------------+-
--------+--------+-----------+--------+--------+---------+------------+-
--------+--------+-----------+--------+--------+---------+------------+-
--------+--------+-----------+--------+--------+---------+------------+-
--------+--------+-----------+--------+--------+---------+------------+-
--------+--------+-----------+--------+--------+---------+------------+-
--------+--------+-----------+--------+--------+---------+------------+-
--------+--------+-----------+--------+--------+---------+------------+-
--------+--------+-----------+--------+--------+---------+------------+-
--------+--------+-----------+--------+--------+---------+------------+-
--------+--------+-----------+--------+--------+---------+------------+-
--------+--------+-----------+--------+--------+---------+------------+-
--------+--------+-----------+--------+--------+---------+------------+-
--------+--------+-----------+--------+--------+---------+------------+-
--------+--------+-----------+--------+--------+---------+------------+-
 > upfab   |    1005|f          |f       |f       |f        |C0mp4q
 > |

I connect with

 > new Database("jdbc:postgresql://svearike.org/upfab", "upfab",
"C0mp4q");

And finally, the error I get is:

 > Something unusual has occured to cause the driver to fail. Please  >
report this exception: Exception: java.sql.SQLException: Password  >
authentication failed for user 'upfab'

HOWEVER! As I wrote this e-mail, I tested with another password,
'c0mp4q'. This gave me another error:

 > Something unusual has occured to cause the driver to fail. Please  >
report this exception: Exception: java.sql.SQLException: ERROR:  No  >
such function 'pg_encoding_to_char' with the specified attributes

I guess this is because the driver's intended for another version of
Postgres. BUT am I missing something or are you not supposed to use
capital C as the first letter in a password?

/
     Fredrik Wendt



---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html



В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Fredrik Wendt
Дата:
Сообщение: Problems connecting over tcp-ip BUG?
Следующее
От: Richard Emberson
Дата:
Сообщение: which JDBC driver