首页 > 解决方案 > psql:错误:主机“xxxx”、用户“cp”、数据库“abcd”、SSL 关闭 PGBOUNCER 问题没有 pg_hba.conf 条目

问题描述

我正在尝试使用 pgbouncer 连接到数据库。我们的数据库是 POSTGRESQL,它在 AZURE 提供的托管服务上运行。现在在 Ubuntu 18.04 LTS 上配置 Pgbouncer.ini 文件后,我面临以下问题:每当我尝试使用 localhost 连接时:

psql -U user -h localhost -p 6432 abcd

它将输出为

psql: ERROR:  no pg_hba.conf entry for host "x,x,x,xx", user "username", database "dbname", SSL off

我很感兴趣我没有给出这样的配置他们为什么仍然 pgbouncer 正在寻找 pg_hba.conf 文件。

标签: postgresqlazurepgbouncer

解决方案


推荐阅读