# "local" is for Unix domain socket connections only
##local all all scram-sha-256
# IPv4 local connections:
##host all all 127.0.0.1/32 scram-sha-256
# IPv6 local connections:
##host all all ::1/128 scram-sha-256
# Allow replication connections from localhost, by a user with the
# replication privilege.
##local replication all scram-sha-256
##host replication all 127.0.0.1/32 scram-sha-256
##host replication all ::1/128 scram-sha-256
#上面83到93行全部注释掉
#下面是新增的
# "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
authentication method 10 not navicat修改postgreSQL安装路径下pg_hba.conf修改方法# "local" is for Unix domain socket connections only##local all all scram-sha-256# IPv4 local connections:##host all