I use Yii2, db connection
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'pgsql:host=localhost;dbname=data-storage',
'username' => 'data-storage',
'password' => '',
'charset' => 'utf8',
]
My database does not have a password. I got an error: SQLSTATE[08006] [7] fe_sendauth: no password supplied. If I use some password (just fake, as I mentioned I don't have it) I'm getting: password authentication failed for user "data-storage"
In pg_hba.conf I have a record for my domain:
host all all 172.28.3.70/32 trust
Which works fine for PgAdmin.