From: Andrei Bintintan <klodoma@ar-sd.net>
To: pgsql-admin@postgresql.org
Subject: Win32 Postgresql Command Line Password Specification
Date: Tue, 8 Feb 2005 10:11:20 +0200
Message-ID: <007501c50db5$c6e204f0$0b00a8c0@forge> (raw)
Hi,
I have to run some command line commands that I have to run on a windows machine. Like pgsql, dropdb, createdb etc.
All these commands are runned from a php scripts.
Now, my question is how can I specify a User and Password to postgresql database system. I found out how can I say the user, but the password is always asked in the command line. I need this also to be specified in the command.
for example: dropdb database1 -U postgres -W.... always ask a password in the command line.
I want to specify in the command line the pass.
The only solution that I found for this problem is to put the postgre user autentication to trust and to skip the password.
Andy.
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: klodoma@ar-sd.net
Subject: Re: Win32 Postgresql Command Line Password Specification
In-Reply-To: <007501c50db5$c6e204f0$0b00a8c0@forge>
References: <007501c50db5$c6e204f0$0b00a8c0@forge>
* 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