2
Good morning, everyone,
I’m trying to make a script with extension. bat to make automatic update in the bank,.
I am doing as follows to access my bank through windows pronpt. psql -U bank user -w bank password
but I get the following message fe_sendauth:no passoword supplied
OBS:I know that when typing( psql -U user of the bank ) it asks for the password but, this is exactly what I want not to appear. I want to enter the password by command.
That’s exactly it but I still don’t understand how to do it and how to use it. It could be clearer
– thiago xavier
@thiagoxavier After you create the file you will no longer need to enter the password. You don’t need to do anything. What exactly didn’t you understand? How to create the file?
– Clodoaldo Neto
Yes, it is the block structure in the case I did so: *:*localhost:5432:test:postgres:123 following the structure Hostname : port : database : username : password but when I go to the prompt and type psql -U postgres it still asks for the password I am editing the txt file that is in folder C: Users Thiago Appdata Roaming postgresql
– thiago xavier
@thiagoxavier Use the line exactly as I posted.
– Clodoaldo Neto
thanks thanks worked out. I’m sorry I didn’t understand before
– thiago xavier