X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2A573476521 for ; Tue, 6 May 2003 15:04:12 -0400 (EDT) Received: from anchor-post-35.mail.demon.net (anchor-post-35.mail.demon.net [194.217.242.85]) by postgresql.org (Postfix) with ESMTP id 95921476494 for ; Tue, 6 May 2003 15:04:06 -0400 (EDT) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-35.mail.demon.net with esmtp (Exim 3.36 #2) id 19D7jP-0002Gt-0Z; Tue, 06 May 2003 20:04:03 +0100 Received: from localhost ([127.0.0.1] ident=olly) by linda.lfix.co.uk with esmtp (Exim 3.36 #1 (Debian)) id 19D7jO-0004fl-00; Tue, 06 May 2003 20:04:02 +0100 Subject: Re: problems in connection From: Oliver Elphick To: Shankar K Cc: pgsql-admin@postgresql.org In-Reply-To: <20030506183611.33812.qmail@web21106.mail.yahoo.com> References: <20030506183611.33812.qmail@web21106.mail.yahoo.com> Content-Type: text/plain Organization: LFIX Limited Message-Id: <1052247842.17288.3.camel@linda.lfix.co.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 06 May 2003 20:04:02 +0100 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-34.8 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_XIMIAN autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/66 X-Sequence-Number: 8628 On Tue, 2003-05-06 at 19:36, Shankar K wrote: > [postgres@ base]$ psql -l -p 5433 > List of databases > Name | Owner | Encoding > -----------+----------+----------- > template0 | postgres | SQL_ASCII > template1 | postgres | SQL_ASCII > (2 rows) > > but when i try to login to the database cluster thats > listening on 5433, i end up with the error. > > [postgres@ base]$ psql -p 5433 > psql: FATAL: Database "postgres" does not exist in > the system catalog. > > any clues as to what am missing here. It is trying to connect to a database called "postgres" and you haven't got one. If you don't specify a database, psql tries to find one whose name is the same as your username. Try psql -d template1 -p 5433 -- Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight, UK http://www.lfix.co.uk/oliver GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C ======================================== "If it is possible, as much as it depends on you, live peaceably with all men." Romans 12:18