postgresql: .pgpass not working

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

    Did you try specifying the host, user, & db?

    pg_dump -U someuser -h localhost somedb > directory/somefile.dump
    

提交回复
热议问题