I'm trying to write shell script to avoid entering password every time while login to psql.
Asked
Active
Viewed 3,611 times
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