简体   繁体   中英

could not connect PostgreSQL server

When I am trying to connect to PostgreSQL, I gain this message :

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 :

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.

The error suggests that you have just installed the postgres software and not configured it.

Please follow the below link to configure it as well.

setting up and configuring postgres on windows

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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