Received: from mail2.svr.pol.co.uk (mail2.svr.pol.co.uk [195.92.193.210]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3PJ02347062 for ; Wed, 25 Apr 2001 15:00:02 -0400 (EDT) (envelope-from jsulem@sulem.freeserve.co.uk) Received: from modem-139.south-dakota.dialup.pol.co.uk ([62.137.92.139] helo=tauron.sulem) by mail2.svr.pol.co.uk with esmtp (Exim 3.13 #0) id 14sUW7-000132-00 for pgsql-admin@postgresql.org; Wed, 25 Apr 2001 20:00:00 +0100 Received: from sulem.freeserve.co.uk (jazz.sulem [192.168.3.17]) by tauron.sulem (8.9.3/8.8.7) with ESMTP id TAA09685 for ; Wed, 25 Apr 2001 19:47:15 +0100 Message-ID: <3AE72955.3070402@sulem.freeserve.co.uk> Date: Wed, 25 Apr 2001 19:45:25 +0000 From: Jared Sulem User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; 0.8.1) Gecko/20010323 X-Accept-Language: en MIME-Version: 1.0 To: PostgreSQL Admin List Subject: Re: Remote login to the database References: <000301c0cd78$62460720$15f8a8c0@wipro.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200104/131 X-Sequence-Number: 1268 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