pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Elphick <olly@lfix.co.uk>
To: Rudi Starcevic <rudi@oasis.net.au>
Cc: pgsql-sql@postgresql.org
Subject: Re: psql and password
Date: 28 Mar 2002 07:11:22 +0000
Message-ID: <1017299482.21473.331.camel@linda> (raw)
In-Reply-To: <3CA27648.7060307@oasis.net.au>
References: <3CA27648.7060307@oasis.net.au>

On Thu, 2002-03-28 at 01:47, Rudi Starcevic wrote:

> To create this database I'm trying to pass in the password from the script.
> For example :
> 
> echo myPgPassword | /usr/local/pgslq/bin/createdb yourNewPgDatabase

Set the environment variable:

PGPASSWORD=myPgPassword /usr/local/pgslq/bin/createdb yourNewPgDatabase


-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C

     "Thou wilt keep him in perfect peace, whose mind is  
      stayed on thee; because he trusteth in thee."  
                                        Isaiah 26:3,4  

Attachments:

  signature.asc (application/pgp-signature, 231B) download

view thread (3+ messages)

Message-ID: <1017299482.21473.331.camel@linda>
Permalink:  ../1017299482.21473.331.camel@linda/
Also on:    postgresql.org/message-id/1017299482.21473.331.camel@linda

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: olly@lfix.co.uk, rudi@oasis.net.au
  Subject: Re: psql and password
  In-Reply-To: <1017299482.21473.331.camel@linda>

* 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