Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.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尝试连接到旧端口,但我的默认端口是5432-can';t登录_Postgresql - Fatal编程技术网

Postgresql pgadmin4尝试连接到旧端口,但我的默认端口是5432-can';t登录

Postgresql pgadmin4尝试连接到旧端口,但我的默认端口是5432-can';t登录,postgresql,Postgresql,我无法登录到我的pgadmin4面板,我正在使用postgre12。 当我安装postgres时,我将默认端口设置为1111,但是 我将端口名更改为默认5432。我检查了postgresql.conf文件,默认端口仍然是5432 现在,当我转到pgadmin4并尝试使用登录时 用户名-postgres 密码-管理员或postgres 它给了我这个错误: could not connect to server: Connection refused (0x0000274D/10061) Is

我无法登录到我的pgadmin4面板,我正在使用postgre12。 当我安装postgres时,我将默认端口设置为1111,但是 我将端口名更改为默认5432。我检查了postgresql.conf文件,默认端口仍然是5432

现在,当我转到pgadmin4并尝试使用登录时

用户名-postgres

密码-管理员或postgres

它给了我这个错误:

 could not connect to server: Connection refused 
(0x0000274D/10061) Is the server running on host "localhost" 
(::1) and accepting TCP/IP connections on port 1111? 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 1111?

为什么它仍然引用这个旧端口1111?

问题在于
PgAdmin4配置

转到
server properties->connections
并将
端口更改为
5432


在Pgadmin中,转到服务器
属性
->
连接
并将端口更改为
5432
@Thirumal,thx u i deleted postgre并再次下载lool@Thirumal,奇怪的是,即使重新安装postgre,它仍然会给我同样的错误。我想问题在于
PgAdmin4
配置不在
PostgreSQL
@Thirumal中。你是对的!我在连接中看到端口为“1111”,我将其更改为5432并刚刚登录!