pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rommel B. Abaya <rommel.abaya@ramcargroup.com>
To: Srinivasa R Chava <s.chava@wcom.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: how to connect remote database
Date: Tue, 17 Jul 2001 08:54:20 +0800
Message-ID: <3B538CBC.5DC5A33B@ramcargroup.com> (raw)
References: <3B533A69.812F20F7@wcom.com>

psql <databasename> -h <hostname/ip address> -U <username>

e.g. To connect to database customers on server gravy from server xxx :

psql customers -h gravy -U mypassword


-- rba

hth


Srinivasa R Chava wrote:

> Hai,
> How to connect the database from remote client ,using psql
> In oracle we use the command like the following one at sqlplus
> prompt.
> Sqlplus> username/password@hostname
>
> How to do it in postgresql
> I tried like this
> psql dabasename username@hostname
>
> It is not working.
>
> Can anybody has an idea?
> Thanks
> chava
> --
>
> Srinivasa R Chava (Chava) <s.chava@wcom.com>
> Application Developer
> Corporate Intra/Internet Systems
> WORLDCOM - http://www.worldcom.com/ - NASDAQ:WCOM
> 500 Clinton Center Drive (Corporate Headquarters)
> Clinton, Mississippi (MS) USA  39056
> (601)460-3122 / vnet4603122 / (800)844-1009 / FAX(601)460-8257
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly

Attachments:

rommel.abaya.vcf (text/x-vcard, 203B) download begin:vcard n:Abaya;Rommel x-mozilla-html:FALSE org:Ramcar Food Group;IT adr:;;;;;; version:2.1 email;internet:rommel.abaya@ramcargroup.com title:IT Supervisor x-mozilla-cpt:;0 fn:Rommel Abaya end:vcard

view thread (4+ messages)

Message-ID: <3B538CBC.5DC5A33B@ramcargroup.com>
Permalink:  ../3B538CBC.5DC5A33B@ramcargroup.com/
Also on:    postgresql.org/message-id/3B538CBC.5DC5A33B@ramcargroup.com

 · 

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: rommel.abaya@ramcargroup.com, s.chava@wcom.com
  Subject: Re: how to connect remote database
  In-Reply-To: <3B538CBC.5DC5A33B@ramcargroup.com>
  References: <3B533A69.812F20F7@wcom.com> <3B538CBC.5DC5A33B@ramcargroup.com>

* 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