postgresql - pgAdmin4 - 无法联系 postgresql 应用程序服务器

标签 postgresql pgadmin postgresql-10 pgadmin-4

我知道这个问题可能会被标记为重复,但请记住,我已经搜索了许多已发布的解决方案,但我的错误尚未得到修复。

当启动 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/

相关文章:

sql - PostgreSQL 9.3 - 比较两组数据而不重复第一组中的值

python - Django 和 PostgreSQL "No Fixtures Found"

postgresql - @Tailable(spring-data-reactive-mongodb) 相当于 spring-data-r2dbc

sql - SELECT 查询中的索引扫描速度较慢

sql - Postgresql 只读副本中未使用索引。为什么?

postgresql - 使用 pgadmin 远程访问 postgresql

database - PostgreSQL:如何将数据从一个数据库表复制到另一个数据库

right-to-left - pgadmin 文本从右到左显示

postgresql-9.3 - PostgreSQL - 在 pg_dump 时刷新具体化 View

PostgreSQL 负整数溢出