2016-06-06 8 views
1

Knoten v6.2 unter Windows 10; PG (node-postgres) 4.4.2Postgres: Verbindung von NodeJS (PG) mit md5 nicht möglich

Postgres 9.5 auf Ubuntu 14.04 Trusty VirtualBox

Ich bin der PG (node-postgres) Modul zu Postgres auf Ubuntu in einer virtuellen Maschine zu verbinden. Ich konnte mit Navicat keine Verbindung herstellen, aber diese Anmeldeinformationen funktionierten nicht, als ich mich mit NodeJS verband. Die Postgres log zeigt dies:

[email protected] FATAL: password authentication failed for user "xxxx" 
[email protected] DETAIL: Connection matched pg_hba.conf line 96: "host all    all    all  $ 

ich diese Linie meiner pg_hba.conf Datei hinzugefügt und jetzt funktioniert es aber kann jemand erklären, warum md5 funktioniert nicht?

# I added this line: 
host all    all    all      password 
# This line was already here: 
host all    all    all      md5 
+0

Was sind Ihre Versionen von Node.js und 'Knoten-postgres'? –

Antwort

Verwandte Themen