From: | "Dave Cramer" <Dave(at)micro-automation(dot)net> |
---|---|
To: | "'Fredrik Wendt'" <fredrik(dot)wendt(at)linux(dot)se>, <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: Problems connecting over tcp-ip BUG? |
Date: | 2002-03-10 15:21:48 |
Message-ID: | 005f01c1c847$4c60f3a0$807ba8c0@inspiron |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Fredrik,
What version of postgres? Of jdbc ?
Dave
-----Original Message-----
From: pgsql-jdbc-owner(at)postgresql(dot)org
[mailto:pgsql-jdbc-owner(at)postgresql(dot)org] On Behalf Of Fredrik Wendt
Sent: Saturday, March 09, 2002 8:08 PM
To: pgsql-jdbc(at)postgresql(dot)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?
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Emberson | 2002-03-10 16:21:36 | which JDBC driver |
Previous Message | Fredrik Wendt | 2002-03-10 01:08:18 | Problems connecting over tcp-ip BUG? |