postgresql: .pgpass not working

前端 未结 5 781
再見小時候
再見小時候 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:02

    Although question has already been answered and accepted, it may also happen that permissions on .pgpass file are not properly set. It has to have the world and group access disallowed:

    /bin/chmod 0600 ~/.pgpass
    

提交回复
热议问题