简体   繁体   English

无法连接 PostgreSQL 服务器

[英]could not connect PostgreSQL server

When I am trying to connect to PostgreSQL, I gain this message :当我尝试连接到 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?

And When I Installed PostgreSQL, I gain the ERROR :当我安装 PostgreSQL 时,我得到了错误:

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

My assumption is that I have some problems with data folder in PostgreSQL because data folder is empty.我的假设是,我有一些问题与data文件夹中的PostgreSQL,因为data文件夹为空。

The error suggests that you have just installed the postgres software and not configured it.该错误表明您刚刚安装了 postgres 软件并且没有对其进行配置。

Please follow the below link to configure it as well.请按照以下链接进行配置。

setting up and configuring postgres on windows 在 Windows 上设置和配置 postgres

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

相关问题 PostgreSQL OperationalError:无法连接到服务器 - PostgreSQL OperationalError: could not connect to server 无法连接到服务器:PostgreSQL -Heroku - could not connect to server:PostgreSQL -Heroku PostgreSQL 服务器连接错误:无法连接到服务器 - PostgreSQL server Connection error: could not connect to server PostgreSQL 错误:无法连接到数据库模板1:无法连接到服务器: - PostgreSQL error: could not connect to database template1: could not connect to server: PostgreSQL:无法连接到服务器:连接被拒绝 - PostgreSQL: could not connect to server: Connection refused PostgreSQL:无法连接到服务器:没有这样的文件或目录 - Postgresql: could not connect to server: No such file or directory 无法连接到 postgresql 服务器 django Lightsail - could not connect to postgresql server django lightsail PostgreSQL 错误“无法连接到服务器:没有这样的文件或目录” - PostgreSQL error 'Could not connect to server: No such file or directory' Postgresql 适配器 (pg):无法连接到服务器 - Postgresql adapter (pg): could not connect to server PostgreSQL 无法连接到服务器:没有这样的文件或目录 - PostgreSQL could not connect to server: No such file or directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM