7

我已经在 Windows 上安装和配置了 pgbouncer。pgbouncer 服务正在运行,但是当我将它与 postgres 9.6 连接时,它会抛出错误'

pgbouncer 无法连接到服务器

' 使用 pgbouncer 端口创建服务器

pgbouncer configurations are:
postgres = host=127.0.0.1 port=4851
staging29-6-1016 = host=localhost port=4851 dbname=staging29-6-1016
listen_addr = *
listen_port = 6432
auth_type = md5
auth_file = C:\Program Files (x86)\PgBouncer\etc\userlist.txt

userlist.txt 还包含 md5 加密密码

postgresql.conf 文件包含:

监听地址 = '*' 端口 = 4851

请帮助我如何消除此错误。

2017-08-03 15:23:33.429 2360 LOG C-00EA8FE0: postgres/postgres@[::1]:54985 login attempt: db=postgres user=postgres tls=no 
2017-08-03 15:23:33.429 2360 LOG C-00EA8FE0: postgres/postgres@[::1]:54985 closing because: pgbouncer cannot connect to server (age=0) 
2017-08-03 15:23:33.430 2360 WARNING C-00EA8FE0: postgres/postgres@[::1]:54985 Pooler Error: pgbouncer cannot connect to server 
4

0 回答 0