postgresql: .pgpass not working

前端 未结 5 779
再見小時候
再見小時候 2021-02-03 19:16

I have created a .pgpass file in my home directory which looks like this

localhost:5432:somedb:someuser:somepass

I am using a shell scr

5条回答
  •  爱一瞬间的悲伤
    2021-02-03 20:13

    Check the owner of the .pgpass file. Just lost half an hour to find out I had created my .pgpass file with sudo. The command for my user and location was chown postgres:postgres /var/lib/pgsql/.pgpass.

提交回复
热议问题