Windows PSQL command line: is there a way to allow for passwordless login?

后端 未结 6 1687
星月不相逢
星月不相逢 2020-12-13 07:30

My goal is to be able to fire off a command without having to be prompted for my password. Is there any way to achieve this from the windows command line? In Linux I feel I

6条回答
  •  情深已故
    2020-12-13 07:39

    I found another useful solution that worked for me on this link. It basically sets the PGPASSWORD at the beginning of your command like this:

    PGPASSWORD=PASSWORD psql YOUR_CODE
    

提交回复
热议问题