繁体   English   中英

无法连接 PostgreSQL 服务器

[英]could not connect PostgreSQL server

当我尝试连接到 PostgreSQL 时,我收到以下消息:

Unable to connect to server:
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?

当我安装 PostgreSQL 时,我得到了错误:

Problem running post-install step. Installation may not complete correctly. The database cluster initialisation failed.

我的假设是,我有一些问题与data文件夹中的PostgreSQL,因为data文件夹为空。

该错误表明您刚刚安装了 postgres 软件并且没有对其进行配置。

请按照以下链接进行配置。

在 Windows 上设置和配置 postgres

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM