RE: Connecting postgreSQL using JDBC

Поиск
Список
Период
Сортировка
От Matthew
Тема RE: Connecting postgreSQL using JDBC
Дата
Msg-id 183FA749499ED311B6550000F87E206C0C925B@SRV
обсуждение исходный текст
Ответ на Connecting postgreSQL using JDBC  ("Howard" <kstse@netvigator.com>)
Список pgsql-general
What access does your pg_hba.conf provide for?  I think it defaults to
only allowing local access.  In order to connect to it from remote
machines the -I option needs to be given to postmaster and the
pga_hba.conf needs to allow connection from that IP to that data base
for that user.

Matt

> -----Original Message-----
> From:    Howard [SMTP:kstse@netvigator.com]
> Sent:    Tuesday, June 27, 2000 10:29 PM
> To:    pgsql-general@postgresql.org.pgsql-questions@postgresql.org
> Subject:    [GENERAL] Connecting postgreSQL using JDBC
>
> I have just tried a sample Java program. It connects the PostgreSQL
> through
> the JDBC. I ran it on the postgreSQL machine. It works fine. But, when
> I
> tried to run it in another machine and connecting the database through
> the
> network. The connection was refused. I have no idea what is wrong.
>
> postgreSQL:
>     startup with 'postmaster -i'
> java program:
>     ...DriverManager.getConnection ("jdbc:postgresql:webtest",
> "nobody",
> "");
> where webtest is my testing database name.
>
> -- Howard
>

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Inserting into views
Следующее
От: Lincoln Yeoh
Дата:
Сообщение: Re: Insert into a table with only a SERIAL