I'm trying to write shell script to avoid entering password every time while login to psql.
Asked
Active
Viewed 2,946 times
0
-
I found the answer from here --> https://dba.stackexchange.com/questions/14740/how-to-use-psql-with-no-password-prompt – Lenin Mar 03 '22 at 16:37
1 Answers
0
I found the answer from here & worked for me --> How to use psql with no password prompt?
PGPASSWORD=YOUR_PASSRORD psql -h YOUR_PG_HOST -U YOUR_USER_NAME
Lenin
- 1
- 1
- 1