pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fatih Gulec <fatihg@cs.hacettepe.edu.tr>
To: pgsql-php@postgresql.org
Subject: DB Error: connect failed
Date: Sun, 13 Aug 2006 18:27:28 +0300 (EEST)
Message-ID: <2033.193.140.224.60.1155482848.squirrel@cs.hacettepe.edu.tr> (raw)

Here is the problem :
System : Fedora Core 5
Application server : Apache (comes with Fedora base installation)

1. I could not connect to postgresql in php code whicih uses pear packet
DB. Here is the error code :
DB Error: connect failed [nativecode=Unable to connect to PostgreSQL
server: could not connect to server: Permission denied Is the server
running on host "127.0.0.1" and accepting TCP/IP connections on port
5432?] ** pgsql://postgres:bbmprens@127.0.0.1/prens

2. By the way I can connect that db from an other machine which the system
is Windows XP and program is default PgAdmin.
2. Alsa I can connect and use from a windows machine with the sama php
code that connects to the dbms which works on the Fedora Core 5.
3. The user and password are tested by using pgsql command, in command
prompt.

Thanks...




view thread (4+ messages)  latest in thread

Message-ID: <2033.193.140.224.60.1155482848.squirrel@cs.hacettepe.edu.tr>
Permalink:  ../2033.193.140.224.60.1155482848.squirrel@cs.hacettepe.edu.tr/
Also on:    postgresql.org/message-id/2033.193.140.224.60.1155482848.squirrel@cs.hacettepe.edu.tr

 · 

reply

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: fatihg@cs.hacettepe.edu.tr
  Subject: Re: DB Error: connect failed
  In-Reply-To: <2033.193.140.224.60.1155482848.squirrel@cs.hacettepe.edu.tr>
  References: <2033.193.140.224.60.1155482848.squirrel@cs.hacettepe.edu.tr>

* 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