postgresql - 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 文件。
解决方案
推荐阅读
- css - 如何正确加载我的 css asp.net Visual Basic
- angular - 我无法返回新的 observable 看起来不起作用
- php - 在 Symfony 中使用迁移时如何保持预先存在的表不变?
- .net - 对于 .NET Core 应用程序,“服务...启动”指令到底意味着什么?
- mariadb - MariaDB 为 ROW 类型的变量动态提取列
- uppaal - 找不到可能导致“由超出范围的分配或超出范围的数组查找引起”的原因。错误
- recursion - Rust 什么时候保证尾递归?
- machine-learning - na.fail.default 中的随机森林错误:对象中的缺失值
- user-experience - 专为专家设计的 UI 的技术术语是什么?
- python - 避免在导入的函数调用中传递(相同重复的)参数