我知道这个问题可能会被标记为重复,但请记住,我已经搜索了许多已发布的解决方案,但我的错误尚未得到修复。
当启动 postgres 时,出现以下错误:
postgresql application server could not be contacted.
当以管理员身份运行时,错误“已解决”,但应用程序在另一个端口中打开 - 有时它在 50142、51120 和其他端口中打开 50859 -。当它在另一个端口上打开时(如前所述),它要求输入密码以连接到服务器,我收到此错误:
could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?
信息:
- Windows 10 64 位
- PostgreSQL 10
- pgAdmin 4.1
- 端口 5432(甚至出现在 PostgreSQL\10\data\postgres.conf 中)
已经尝试过的解决方案:
- 以管理员模式运行
- 修改postgres.conf文件
- 清除文件夹 AppData\Roaming\pgAdmin 的内容
我想知道如何在启动应用程序并始终在特定端口上打开时避免此错误。
最佳答案
只需找到 AppData\Roaming\pgAdmin,删除 pgAdmin 文件夹并尝试再次启动 pgAdmin...它应该可以工作
关于postgresql - pgAdmin4 - 无法联系 postgresql 应用程序服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54269796/