From: Douglas Douglas <replaceafi11@yahoo.es>
To: pgsql-php@postgresql.org
Subject: pg_connect socket creation error (0x0000273F)
Date: Mon, 12 Jan 2004 14:46:07 -0800 (PST)
Message-ID: <20040112224607.26249.qmail@web80808.mail.yahoo.com> (raw)
Hello.
I've been fighting with this all day, trying to fix it but I
couldn't. So here I am. I have Cygwin installed in a Win XP machine.
PostgreSQL is running there. Apache and PHP are installed in Windows
in the same computer. PostgreSQL is properly configured (even psql
and pgAdmin III work).
Since I've heard that sockets are more efficient that connecting to
localhost, I decided to uncomment the lines:
tcpip_socket = true
port = 5432
in the postgresql.conf file.
But when I removed the host parameter from the connection string:
pg_connect('dbname=mydb user=myuser password=mypass')
I got this message:
Warning: pg_connect(): Unable to connect to PostgreSQL server: could
not create socket: An address incompatible with the requested
protocol was used. (0x0000273F) . in c:\htdocs\testsockets.php on
line 2
What does this line "An address incompatible with the requested
protocol was used." means?!?
I've looked similar errors in this list and google but I couldn't
find an answer. Some people wrote that could be a problem in the
pg_hba.file. I tried there too, but didn't work:
host all all 127.0.0.1 255.255.255.255 trust
I would appreciate any help. Thanks.
Regards, Douglas.
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: replaceafi11@yahoo.es
Subject: Re: pg_connect socket creation error (0x0000273F)
In-Reply-To: <20040112224607.26249.qmail@web80808.mail.yahoo.com>
References: <20040112224607.26249.qmail@web80808.mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox