Hallo,
pgadmin4 sagt mir “Erstellen Server” Connection
Name siegfried
Wartungsdaten postgres
Benutzerdaten postgres
Passwort: xxx
Passwort speichern: x
und dann kommt
Error saving properties
Unable to connect to server:
FATAL: Passwort-Authentifizierung für Benutzer »postgres« fehlgeschlagen
FATAL: Passwort-Authentifizierung für Benutzer »postgres« fehlgeschlagen
Was mache ich falsch?
Ich habe Ubuntu 18.04 mit postgresql und jdk 10.0.2
was hast denn in Deiner pg_hba.conf stehen?
cd /etc/postgresql/10/pg_hba.conf:
local all postgres peer
local all all __ peer
host all all 127.0.0.1/32 md5
host all all ::1/128 MD5
local replication all __ peer
host replication all 127.0.0.1/32 md5
host replication all ::1/128 md5
damit dürfte dies zutreffen:
host all all 127.0.0.1/32 md5
Dann ist wohl ‘xxx’ falsch
Ich habe
host all all 127.0.0.1/32 md5
nach
host all all 127.0.0.1/32 trust
geändert. Aber das wars nicht:
Fatal:Passwort-Authentifizierung für Benutzer »postgres« fehlgeschlagen
Reload gemacht?
Ja, jetzt hat das funktionert:
/usr/bin/postgresql/10/pg_ctl restart
hat nicht funktionert,
aber
sudo service postgresql restart odr stop und dann start
hat funnktioniert.
Danke, jetzt mache ich Eclipse. Danke.
Jetzt mache ich das zu?
ein
select pg_reload_conf();
hätte es auch getan