当前位置:Gxlcms > 数据库问题 > postgresql免密码登录

postgresql免密码登录

时间: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   

人气教程排行