我安装了pgbouncer并设置了pgbouncer.ini,我的应用程序可以连接到pgbouncer并进行查询。
但是,当我试图通过以下命令连接到pgbouncer的虚拟管理数据库时
psql -p 6543 -U postgres pgbouncer我收到以下信息
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.6543"?发布于 2017-01-03 13:58:20
尝试在连接字符串中使用主机。例如,如果在您的listen_addr = 127.0.0.1文件中使用了config,那么请使用:
psql -h 127.0.0.1 -p 6543 -U postgres pgbouncerhttps://dba.stackexchange.com/questions/141343
复制相似问题