pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jared Sulem <jsulem@sulem.freeserve.co.uk>
To: PostgreSQL Admin List <pgsql-admin@postgresql.org>
Subject: Re: Remote login to the database
Date: Wed, 25 Apr 2001 19:45:25 +0000
Message-ID: <3AE72955.3070402@sulem.freeserve.co.uk> (raw)
References: <000301c0cd78$62460720$15f8a8c0@wipro.com>

vijayendra mohan agrawal wrote:

 > how do I connect to the database.

psql -h host [-p port] [-U username] database_name

OR

psql -h host [-p port] database_name username

psql --help for details of all the options.

One thing to remember - if you try to login from the database machine
and if you have restricted access to the database from localhost
(127.0.0.1) but not from the database machines network IP address, then
you must specify the host option with the local machines network IP address.

Jared




view thread (2+ messages)

Message-ID: <3AE72955.3070402@sulem.freeserve.co.uk>
Permalink:  ../3AE72955.3070402@sulem.freeserve.co.uk/
Also on:    postgresql.org/message-id/3AE72955.3070402@sulem.freeserve.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: jsulem@sulem.freeserve.co.uk
  Subject: Re: Remote login to the database
  In-Reply-To: <3AE72955.3070402@sulem.freeserve.co.uk>
  References: <000301c0cd78$62460720$15f8a8c0@wipro.com> <3AE72955.3070402@sulem.freeserve.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