sql – FATAL:没有pg_hba.conf条目的主机“fe80 :: 1%lo0”

前端之家收集整理的这篇文章主要介绍了sql – FATAL:没有pg_hba.conf条目的主机“fe80 :: 1%lo0”前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
有人可以帮助我,为什么当我试图连接到数据库或者轨道时呢?

在我的pg_hba.conf文件中,我有:

# TYPE  DATABASE        USER            ADDRESS                 METHOD
# "local" is for Unix domain socket connections only
local   all             all                                     trust
# IPv4 local connections:
host    all             all             127.0.0.1/32            trust
# IPv6 local connections:
host    all             all             ::1/128                 trust
# Allow replication connections from localhost,by a user with the
# replication privilege.
#local   replication     Andrew                                trust
#host    replication     Andrew        127.0.0.1/32            trust
#host    replication     Andrew        ::1/128                 trust

local all all md5

也许我做错了?

谢谢

解决方法

我有同样的问题.不知何故,这行被添加到我的/ etc / hosts文件中:
fe80::1%lo0    localhost

从/ etc / hosts注释或删除该行应该修复它

sudo vi /etc/hosts
#fe80::1%lo0    localhost
原文链接:/mssql/81814.html

猜你在找的MsSQL相关文章