Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> wrote:
I tried various ways to set password in psql command line, but got no luck.

Can anyone help?

Regards,

David

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux