Re: Can't access to database from webapp in PostgreSQL 9.0, from shell it is Ok.

From: "David Johnston" <polobo(at)yahoo(dot)com>
To: "'Andre Lopes'" <lopes80andre(at)gmail(dot)com>, "'postgresql Forums'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Can't access to database from webapp in PostgreSQL 9.0, from shell it is Ok.
Date: 2011-12-02 23:28:11
Message-ID: 000301ccb14a$0f0824f0$2d186ed0$@yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org [mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Andre Lopes
Sent: Friday, December 02, 2011 6:14 PM
To: postgresql Forums
Subject: [GENERAL] Can't access to database from webapp in PostgreSQL 9.0, from shell it is Ok.

With the method above I have no problems in enter "psql" but when I try to connect with the user created with these method to a webapp I got an error:

[code]
Exception Value:
FATAL: Ident authentication failed for user "mypoatgreuser"
[/code]

There is more permissions that I must to give to the user "mypoatgreuser"? What could be wrong here?

-----------------------------------------------------

Andre,

The information you have supplied is inadequate but I am concerned that you may just have a simple typo in your webapp configuration:

"mypoatgreuser" => "mypostgreuser"; note the "a" should be an "s"

Also, it is considered proper for the shortened form of PostgreSQL to include the trailing "s" (Postgres) as opposed to simply "Postgre"; might as well get used to that before you go naming everything you come across "postgre" :)

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2011-12-02 23:34:57 Re: Can't access to database from webapp in PostgreSQL 9.0, from shell it is Ok.
Previous Message Andre Lopes 2011-12-02 23:13:41 Can't access to database from webapp in PostgreSQL 9.0, from shell it is Ok.