Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/unix/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql pgAdmin4“;无法连接到服务器";_Postgresql_Windows 10_Pgadmin 4 - Fatal编程技术网

Postgresql pgAdmin4“;无法连接到服务器";

Postgresql pgAdmin4“;无法连接到服务器";,postgresql,windows-10,pgadmin-4,Postgresql,Windows 10,Pgadmin 4,我使用PostgreSQL和pgAdmin 4在PostgreSQL服务器中管理我的数据,但今天,我刚启动pgAdmin添加一些表,我无法连接到服务器,这给了我以下错误: 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? c

我使用PostgreSQL和pgAdmin 4在PostgreSQL服务器中管理我的数据,但今天,我刚启动pgAdmin添加一些表,我无法连接到服务器,这给了我以下错误:

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?
我在W10

以下是一些图片:


听起来好像您还没有让服务器运行(可能是您安装了它,但没有将它设置为每次重新启动后自动启动?)。你没有提到你的操作系统,所以只需搜索如何为你的特定操作系统启动服务器。你是正确的,抱歉,我在这方面是新手,我在W10,我已经更新了问题信息。