Postgresql: Scripting psql execution with password

后端 未结 16 2487
谎友^
谎友^ 2020-11-28 18:54

How can I call psql so that it doesn\'t prompt for a password?

This is what I have:

psql -Umyuser < myscript.sql         


        
16条回答
  •  庸人自扰
    2020-11-28 19:14

    You may find this useful: Windows PSQL command line: is there a way to allow for passwordless login?

提交回复
热议问题