无法连接到 Postgres 服务器 [英] unable to connect to server for Postgres

查看:87
本文介绍了无法连接到 Postgres 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在更新我的 windows 后连接 Postgres 的服务器时出现问题.在我更新之前,打开数据库没有问题.我在 Postgres 中的数据库也不见了.当我想创建我的新数据库时,它显示此错误:

I have a problem to connect server for Postgres after I updated my windows.Before I update there is no problem to open the database. My database in Postgres also gone. When I want to create my new database it show this error:

无法连接到服务器:无法连接到服务器:连接被拒绝 (0x0000274D/10061) 服务器是否在主机localhost"(::1) 上运行并接受端口 5432 上的 TCP/IP 连接?无法连接到服务器:连接被拒绝 (0x0000274D/10061) 服务器是否在主机localhost"(127.0.0.1) 上运行并接受端口 5432 上的 TCP/IP 连接?

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?

推荐答案

在 Windows 上,只需转到服务".启动/重启 postgresql-X64 服务.它对我有用,因为我的服务不知何故处于停止状态.

On windows, Just go to the 'Services'. Start/Restart the postgresql-X64 service. It worked for me as my service was in stopped state somehow.

这篇关于无法连接到 Postgres 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆