postgresql - Error "psql: fe_sendauth: no password supplied" at connect sublime text with postgres in JSON -


i try query since sublime database can not send password of db.

sql.sublime-build:

{     "cmd": ["psql", "-u","user", "-d","my_database" ,"-o","final.txt","-a", "-e", "-f","$file" ] } 

i tryed adding "-w","mykey" or "-w" not run

per the documentation, should use .pgpass file, or if must, pgpassword environment variable.

-w tells psql "never prompt password".

-w "always prompt password".

there no "here password" command line option.

presumably sublime text offers way set environment variables on command invocations.

another option, if on development machine, tweak pg_hba.conf no password required connection in first place. again, see documentation details.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -