Hallo zusammen, ich bekomme irgendwie keine Verbindung zu meinem Postgresql hin. Ich denke, es liegt an der pg_hba.conf. Weiß nicht, was da noch falsch ist. Wenn ich eingebe: psql -h localhost bacula bekomme ich folgende Fehlermeldung:
<pre>psql: error: connection to server at "localhost" (127.0.0.1), port 5432 failed: FATAL: no pg_hba.conf entry for host "127.0.0.1", user "root", database "bacula", SSL on connection to server at "localhost" (127.0.0.1), port 5432 failed: FATAL: no pg_hba.conf entry for host "127.0.0.1", user "root", database "bacula", SSL off </pre>
Ein Auszug aus der pg_hba.conf:
Database administrative login by Unix domain socket local all postgres peer host bacula postgres 127.0.0.1/32 peer host root root 127.0.0.1/32 trust # TYPE DATABASE USER ADDRESS METHOD # "local" is for Unix domain socket connections only #local all all scram-sha-256 local bacula postgres peer # IPv4 local connections: host all all 127.0.0.1/32 ident #host all all 192.168.0.0/24 md5 # IPv6 local connections: host all all ::1/128 scram-sha-256 # Allow replication connections from localhost, by a user with the # replication privilege. local replication all trust host replication all 127.0.0.1/32 scram-sha-256 host replication all ::1/128 scram-sha-256
ich weiß, die mag etwas wild aussehen, ist ja noch in Bearbeitung...................
Der Server läuft aber, das sagt mit systemctl
Moderiert von Berlin_1946:
Dieses Thema ist verschoben worden. Bitte beachte die als wichtig markierten Themen („Welche Themen gehören hier her und welche nicht?“)!