Port?

From: b b <hell_wild_hot2(at)yahoo(dot)com>
To: postgresql <pgsql-general(at)postgresql(dot)org>
Subject: Port?
Date: 2003-07-31 05:56:59
Message-ID: 20030731055659.96018.qmail@web41813.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


What port does the postgresql server listen on. I am
trying to connect using pg_connect from php using port
5432 with the following command:
$dbconn3 = pg_connect ("host=localhost port=5432
dbname=dbname user=myname password=mypass");

I get the following:
Warning: pg_connect(): Unable to connect to
PostgreSQL server: could not connect to server:
Connection refused Is the server running on host
localhost and accepting TCP/IP connections on port
5432? ...

How do we know the port postgresql is listening on?

Cheers.

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Responses

  • Re: Port? at 2003-07-31 06:05:33 from Kallol Nandi
  • Re: Port? at 2003-07-31 06:08:52 from Ron Johnson
  • Re: Port? at 2003-07-31 07:00:45 from Jean-Christian Imbeault

Browse pgsql-general by date

  From Date Subject
Next Message Kallol Nandi 2003-07-31 06:05:33 Re: Port?
Previous Message Joe Conway 2003-07-31 05:41:33 Re: hexadecimal to decimal