pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Elphick <olly@lfix.co.uk>
To: Shankar K <shan0075@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: problems in connection
Date: 06 May 2003 20:04:02 +0100
Message-ID: <1052247842.17288.3.camel@linda.lfix.co.uk> (raw)
In-Reply-To: <20030506183611.33812.qmail@web21106.mail.yahoo.com>
References: <20030506183611.33812.qmail@web21106.mail.yahoo.com>

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 




view thread (3+ messages)

Message-ID: <1052247842.17288.3.camel@linda.lfix.co.uk>
Permalink:  ../1052247842.17288.3.camel@linda.lfix.co.uk/
Also on:    postgresql.org/message-id/1052247842.17288.3.camel@linda.lfix.co.uk

 · 

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-admin@postgresql.org
  Cc: olly@lfix.co.uk, shan0075@yahoo.com
  Subject: Re: problems in connection
  In-Reply-To: <1052247842.17288.3.camel@linda.lfix.co.uk>
  References: <20030506183611.33812.qmail@web21106.mail.yahoo.com> <1052247842.17288.3.camel@linda.lfix.co.uk>

* 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