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

后端 未结 6 1692
星月不相逢
星月不相逢 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

    Steps:

    First ENviroment Var PGPASSWORD

    C:\Windows\system32>set PGPASSWORD=clave

    before

    psql -d basededatos -U usuario

    Ready,

提交回复
热议问题