Skip site navigation (1) Skip section navigation (2)

Re: Unable to connect to PostgreSQL server:

From: "Crombleholme, Roy" <Roy(dot)Crombleholme(at)its(dot)lancscc(dot)gov(dot)uk>
To: "'info(at)1234567(dot)dk'" <info(at)1234567(dot)dk>,pgsql-novice(at)postgresql(dot)org
Subject: Re: Unable to connect to PostgreSQL server:
Date: 2004-02-18 09:21:21
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
Sorry what do you mean by connecting through PHP, do you mean through a

It may have something to do with you pg_hba.conf, basically if you connect
through pgadmin, you are connecting from the webserver to the db server, so
postgres sees the web servers IP address.  If you are connecting through
PHP, then if you are not on the web server then it will be coming from a
different address, which leads me to believe that it may be the pg_hba.conf.

If your web and db server are on the same box, then I think the pg_hba.conf
is default set up to trust connections on 127.0.01 so you wouldn't be
prompted for a password, whereas if your connecting from somewhere else, you
may need a password or you may be denied access due to your IP address.

Hope this helps in some way.

Roy Crombleholme
Systems/Software Engineer
ICT Services
Resources Directorate
Lancashire County Council
* Tel: 01772 5-31849
* Email:  roy(dot)crombleholme(at)its(dot)lancscc(dot)gov(dot)uk

-----Original Message-----
From: info(at)1234567(dot)dk [mailto:info(at)1234567(dot)dk]
Sent: 17 February 2004 12:33
To: pgsql-novice(at)postgresql(dot)org
Subject: [NOVICE] Unable to connect to PostgreSQL server:

I have a problem: I cannot connect to my Postgresql database from PHP
- but I can connect from PgAdmin.

I get this error:
Unable to connect to PostgreSQL server: FATAL: IDENT authentication
failed for user

What is wrong ?

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

This e-mail contains information intended for the addressee only.
It may be confidential and may be the subject of legal and/or professional privilege. 
If you are not the addressee you are not authorised to disseminate, distribute, copy or use this e-mail or any attachment to it
The content may be personal or contain personal opinions and unless specifically stated or followed up in writing, the content cannot be taken to form a contract or to be an expression of the County Council's position.
LCC reserves the right to monitor all incoming and outgoing email
LCC has taken reasonable steps to ensure that outgoing communications do not contain  malicious software and it is your responsibility to carry out any checks on this email before accepting the email and opening attachments.

pgsql-novice by date

Next:From: Andy CollinsDate: 2004-02-18 11:08:37
Subject: Host variables (from C) in EmbeddedSQL
Previous:From: WimDate: 2004-02-18 07:58:28
Subject: Re: INSERT or COPY: Which one?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group