X-Original-To: pgsql-interfaces@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0C0AD475FEE for ; Wed, 9 Apr 2003 12:23:18 -0400 (EDT) Received: from mta5.snet.net (mta5.snet.net [204.60.203.77]) by postgresql.org (Postfix) with ESMTP id 05E29475EDF for ; Wed, 9 Apr 2003 12:23:17 -0400 (EDT) Received: from pop.snet.net (pop.snet.net [204.60.203.72]) by mta5.snet.net (8.12.3/8.12.3/SNET-mx-1.2/D-1.1.1.1/O-1.1.1.1) with ESMTP id h39GNMBd015535; Wed, 9 Apr 2003 12:23:22 -0400 (EDT) X-Originating-IP: [64.252.95.167] X-SBCIS-MTA: [pop.snet.net] Received: from kencast.com (167.95.252.64.snet.net [64.252.95.167]) by pop.snet.net (8.12.3/8.12.3/SNET-pop-1.2/D-1.1.1.1/O-1.1.1.1) with ESMTP id h39GNLme004854; Wed, 9 Apr 2003 12:23:21 -0400 (EDT) Message-ID: <3E944D04.9000301@kencast.com> Date: Wed, 09 Apr 2003 12:40:36 -0400 From: Wei Weng User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en, zh-cn MIME-Version: 1.0 To: nicolas renie Cc: pgsql-interfaces@postgresql.org Subject: Re: problem to connect References: <000801c2fe0e$63ee8b10$670c0c50@nicolas> In-Reply-To: <000801c2fe0e$63ee8b10$670c0c50@nicolas> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-38.8 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MOZILLA_UA autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/52 X-Sequence-Number: 3991 The default behavior for postgres uses IDENT. So you need to log on as user nicolas to be able to use postgres user nicolas. You can look at /var/lib/pgsql/data/pg_hba.conf for configuration detail. Wei nicolas renie wrote: > Hye > > I use linux mandrack 9.0 and postgres 7.2 > I can't connect to postgresql (even in local) if I use a postgres user. > I don't know what to do. > I've started the daemon (root# etc/rc.d/init.d/postgresql start) > logged under postgres I made a user (createuser nico) and a > database(createdb test) > But I can't access to this database if I am logged under an other user. > (su Eddy or anathor linux user) > > When I try: psql test -h localhost -U nicolas I have the message : > IDENT authentification failed for user nicolas. > I can see the same message when I try to connect whith pgaccess. > > If I try to start pgaccess with: "pgaccess test", the main PgAccess > window > comes up, (empty) but there is an error message box in front of it. > The message is: > > "Error trying to connect to database "test" on host localhost. > is the postmaster running (with -i) at > 'localhost' and accepting connections on TCP/IP port '5432'?" > > Therefore I stopped postgresql etc/rc.d/init.d/postgresql stop > I started it logged under postgres with options ($ postmaster -h > localhost -i ) > > I logged under another linux user > I tried : psql test -h localhost -U nicolas and received the message > > No pga_hba.conf entry for host localhost, user nicolas, database test > > I tryed to change the pg_dba.conf (trust) file but another message > appears. > > I would like to know what to do especially to use pgaccess > > > Please, help me ! > regards > > Nicolas RENIE > >