. Advertisement .
..3..
. Advertisement .
..4..
Hi everyone.
I’m a newbie to this field, so I am really confused when facing the error message: pg::connectionbad: fe_sendauth: no password supplied.
Please take some of your precious time to help me solve this problem. Thanks in advance.
The cause:
According to your
pg_hba.conf
,localhost
as a host indicates a TCP connection, which indicates the authentication method ismd5
(password demanded):Solution:
You must establish a connection using Unix domain sockets in order to use the
peer
method, and as you appear to be running a debian-like operating system, you must enter/var/run/postgresql
in thehost
field, otherwise, nothing is impacted.EDIT: The syntax might be as follows when utilizing database URIs: