Hi,
I'm now using Redhat 7.1, postgres 7.1 and "org.postgresql.Driver" jdbc driver.
At first, I was getting the "Connection refused. check that postmaster is
running with the -i flag ......"
then, I modify the /etc/init.d/postgres script with "-i -p 5432", and add a postgres
script under /etc/xinetd.d/ as:
service postgres
{
socket_type = stream
wait = no
user = root
server = /usr/bin/postmaster
server_args = -i -p 5432 -D '/usr/local/pgsql/data'
}
to enable the tcp/ip connection. after that psql can work find, however when using jdbc connection to postgres:
String driver="org.postgresql.Driver";
String url="jdbcostgresql://127.0.0.1:5432/simon";
String user="simon";
String password="mypw";
......
when runing:
Connection con = DriverManager.getConnection(url,user,password);
I can got only "An error occured while getting the authentication request"
I've read many doc. for helps already, but still can't discover what the problem is ...
I'm welcome to anyone can give me any suggestion, Thx ~~
I'm now using Redhat 7.1, postgres 7.1 and "org.postgresql.Driver" jdbc driver.
At first, I was getting the "Connection refused. check that postmaster is
running with the -i flag ......"
then, I modify the /etc/init.d/postgres script with "-i -p 5432", and add a postgres
script under /etc/xinetd.d/ as:
service postgres
{
socket_type = stream
wait = no
user = root
server = /usr/bin/postmaster
server_args = -i -p 5432 -D '/usr/local/pgsql/data'
}
to enable the tcp/ip connection. after that psql can work find, however when using jdbc connection to postgres:
String driver="org.postgresql.Driver";
String url="jdbcostgresql://127.0.0.1:5432/simon";
String user="simon";
String password="mypw";
......
when runing:
Connection con = DriverManager.getConnection(url,user,password);
I can got only "An error occured while getting the authentication request"
I've read many doc. for helps already, but still can't discover what the problem is ...
I'm welcome to anyone can give me any suggestion, Thx ~~