ServiceDesk Plus オンプレミス版 ナレッジベース

PostgreSQL接続エラー: no pg_hba.conf entry for host


psqlコマンドを使用してPostgreSQLデータベースへ接続しようとして、次のエラーメッセージが返される場合は、次の手順で設定ファイルを変更して下さい。

【エラーメッセージ】
psql: FATAL: no pg_hba.conf entry for host "::1", user "postgres", database "servicedesk", SSL off

【変更手順】

(1) 設定ファイルをテキストエディタで開きます。

<設定ファイル>
[ServiceDesk Plusインストールディレクトリ]\pgsql\data\pg_hba.conf

(2) 次のように"#host"の"#"を削除して保存します。

<変更前>
# IPv6 local connections:
#host all all ::1/128 trust

<変更後>
# IPv6 local connections:
host all all ::1/128 trust

(3) ServiceDesk Plusサーバを再起動します。