Re: How to set password in psql -h -d -U command line?

Поиск
Список
Период
Сортировка
От Joao Miguel Ferreira
Тема Re: How to set password in psql -h -d -U command line?
Дата
Msg-id CALyyT7SwLfFr8Z43zsgdLsmf72gqLkGcVQ0EL0hZCYpGw+8Y5Q@mail.gmail.com
обсуждение исходный текст
Ответ на How to set password in psql -h -d -U command line?  (Shaozhong SHI <shishaozhong@gmail.com>)
Список pgsql-general
Hello,

I usually use this approach:

PGPASSWORD=secret psql -h 127.0.0.1 -p 5432 -U joao mydatabase

it has the down side that the password is shown in the command. need to be careful about that aspect


On Thu, Apr 28, 2022 at 10:33 AM Shaozhong SHI <shishaozhong@gmail.com> wrote:
I tried various ways to set password in psql command line, but got no luck.

Can anyone help?

Regards,

David

В списке pgsql-general по дате отправления:

Предыдущее
От: Karsten Hilbert
Дата:
Сообщение: Aw: How to set password in psql -h -d -U command line?
Следующее
От: Josha Inglis
Дата:
Сообщение: Re: How to set password in psql -h -d -U command line?