ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] PostgreSQL - jdbc
@ 2005-04-28 16:48 Jury Levykin
  2005-04-28 16:58 ` Nikolay A. Fetisov
  0 siblings, 1 reply; 2+ messages in thread
From: Jury Levykin @ 2005-04-28 16:48 UTC (permalink / raw)
  To: community

ALM 2.4
Поставил пакет postgresql-jdbc, написал тестовое приложение
со следующими свойствами:
---------------------------
jdbc.drivers=org.postgresql.Driver
jdbc.url=jdbc:postgresql://localhost:5432/testdb
jdbc.username=postgres
jdbc.password=
-------------------

при запуске получаю ошибку:
------------------------------
Connection refused. Check that the hostname and port are correct and 
that the postmaster is accepting TCP/IP connections.
         at 
org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Connection.java:167)
         at org.postgresql.Driver.connect(Driver.java:122)
         at java.sql.DriverManager.getConnection(DriverManager.java:525)
         at java.sql.DriverManager.getConnection(DriverManager.java:171)
. . .
------------------------------

Из этого я сделал вывод о том, что не активирован режим подключений 
через TCP/IP.
этот режим включается с помощью опции -i команды postmaser.

Как правильно включить режим подключений через TCP/IP после установки 
пакета postgresql-jdbc?



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Comm] PostgreSQL - jdbc
  2005-04-28 16:48 [Comm] PostgreSQL - jdbc Jury Levykin
@ 2005-04-28 16:58 ` Nikolay A. Fetisov
  0 siblings, 0 replies; 2+ messages in thread
From: Nikolay A. Fetisov @ 2005-04-28 16:58 UTC (permalink / raw)
  To: community

On Thu, 28 Apr 2005 20:48:27 +0400
Jury Levykin <altcomm@list.ru> wrote:

> ....
> Из этого я сделал вывод о том, что не активирован режим подключений 
> через TCP/IP.
> этот режим включается с помощью опции -i команды postmaser.
> ....
> Как правильно включить режим подключений через TCP/IP ...

В /var/lib/pgsql/data/postgresql.conf есть параметр tcpip_socket.
Его надо установить в true.

-- 
С уважением,	
Николай Фетисов


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-04-28 16:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-28 16:48 [Comm] PostgreSQL - jdbc Jury Levykin
2005-04-28 16:58 ` Nikolay A. Fetisov

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git