时间:2021-07-01 10:21:17 帮助过:135人阅读
https://www.postgresql.org/docs/8.3/static/libpq-pgpass.html
vi ~/.pgpass
输入以下内容
hostname:port:database:username:password
chmod 0600 ~/.pgpass
然后psql指令 psql -U user -h host 可以不用密码
postgresql免密码登录
标签:pass 密码 class html ati ops post pre postgre