Skip site navigation (1) Skip section navigation (2)

Re: Пароль в psql

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: vvislobokov(at)lukoilperm(dot)ru
Cc: pgsql-ru-general <pgsql-ru-general(at)postgresql(dot)org>
Subject: Re: Пароль в psql
Date: 2005-05-05 10:56:48
Message-ID: Pine.GSO.4.62.0505051455230.18597@ra.sai.msu.su (view raw, whole thread or download thread mbox)
Thread:
Lists: pgsql-ru-general
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---559023410-1934083636-1115290608=:18597
Content-Type: TEXT/PLAIN; charset=koi8-r; format=flowed
Content-Transfer-Encoding: 8BIT

On Thu, 5 May 2005, Viktor Vislobokov wrote:

> Кто-нибудь знает как в командной строке (или как-то
> по-другому, неинтерактивно) задать пароль для psql?
> Мне надо скрипт написать, который бы автоматом сам
> пароль вводил.

несколько способов
1. прописать в ~/.psqlrc - не пробовал
2. PGPASSWORD=tvoy_password psql .....

>
>

 	Regards,
 		Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83
---559023410-1934083636-1115290608=:18597--

In response to

Responses

pgsql-ru-general by date

Next:From: Viktor VislobokovDate: 2005-05-05 11:02:07
Subject: Re: Пароль в psq
Previous:From: Viktor VislobokovDate: 2005-05-05 10:25:16
Subject: Пароль в psql

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group