pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
how to connect remote database
4+ messages / 4 participants
[nested] [flat]

* how to connect remote database
@ 2001-07-16 19:03  Srinivasa R Chava <s.chava@wcom.com>
  0 siblings, 3 replies; 4+ messages in thread

From: Srinivasa R Chava @ 2001-07-16 19:03 UTC (permalink / raw)
  To: pgsql-admin

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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: how to connect remote database
@ 2001-07-16 21:01  Thalis A. Kalfigopoulos <thalis@cs.pitt.edu>
  parent: Srinivasa R Chava <s.chava@wcom.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Thalis A. Kalfigopoulos @ 2001-07-16 21:01 UTC (permalink / raw)
  To: Srinivasa R Chava <s.chava@wcom.com>; +Cc: pgsql-admin

On Mon, 16 Jul 2001, 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.

Do psql --help for the options. There's a -h option. The server must be accepting network coonnections (postmaster must have been started with -i)

cheers,
thalis

> 
> 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
> 




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: how to connect remote database
@ 2001-07-16 21:44  Peter Eisentraut <peter_e@gmx.net>
  parent: Srinivasa R Chava <s.chava@wcom.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Peter Eisentraut @ 2001-07-16 21:44 UTC (permalink / raw)
  To: Srinivasa R Chava <s.chava@wcom.com>; +Cc: pgsql-admin

Srinivasa R Chava writes:

> psql dabasename username@hostname
>
> It is not working.

psql --help
man psql
lynx /usr/local/pgsql/doc/html/index.html

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: how to connect remote database
@ 2001-07-17 00:54  Rommel B. Abaya <rommel.abaya@ramcargroup.com>
  parent: Srinivasa R Chava <s.chava@wcom.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Rommel B. Abaya @ 2001-07-17 00:54 UTC (permalink / raw)
  To: Srinivasa R Chava <s.chava@wcom.com>; +Cc: pgsql-admin

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
^ permalink raw reply [nested|flat] 4+ messages in thread


end of thread, other threads:[~2001-07-17 00:54 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-07-16 19:03 how to connect remote database Srinivasa R Chava <s.chava@wcom.com>
2001-07-16 21:01 ` Thalis A. Kalfigopoulos <thalis@cs.pitt.edu>
2001-07-16 21:44 ` Peter Eisentraut <peter_e@gmx.net>
2001-07-17 00:54 ` Rommel B. Abaya <rommel.abaya@ramcargroup.com>

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