pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Remote login to the database
2+ messages / 2 participants
[nested] [flat]

* Remote login to the database
@ 2001-04-25 11:10 vijayendra mohan agrawal <vijayendra.agrawal@wipro.com>
  2001-04-25 19:45 ` Re: Remote login to the database Jared Sulem <jsulem@sulem.freeserve.co.uk>
  0 siblings, 1 reply; 2+ messages in thread

From: vijayendra mohan agrawal @ 2001-04-25 11:10 UTC (permalink / raw)
  To: pgsql-admin

Hi,

Sorry if the question is too preliminary.

I want to know if we can login to the database running at the server from
any place. I know I have to allow such access thru pg_hba.conf file. But how
do I connect to the database.

Can I do something like :

pgsql database@serverIP where serverIP can be any valid IP address in the
LAN.

OR

pgsql database@connect_string where connect string is defined in some of the
configuration file.

Please revert back

Thanks and regards
Vijay





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

* Re: Remote login to the database
  2001-04-25 11:10 Remote login to the database vijayendra mohan agrawal <vijayendra.agrawal@wipro.com>
@ 2001-04-25 19:45 ` Jared Sulem <jsulem@sulem.freeserve.co.uk>
  0 siblings, 0 replies; 2+ messages in thread

From: Jared Sulem @ 2001-04-25 19:45 UTC (permalink / raw)
  To: pgsql-admin

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




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


end of thread, other threads:[~2001-04-25 19:45 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-04-25 11:10 Remote login to the database vijayendra mohan agrawal <vijayendra.agrawal@wipro.com>
2001-04-25 19:45 ` Jared Sulem <jsulem@sulem.freeserve.co.uk>

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