小编Kev*_*vin的帖子

pgadmin / postgresql - 没有主机的 pg_hba.conf 条目

我正在尝试使用 pgAdmin 连接到由 Elephantsql 托管的 Postgresql 服务器。但是,我不断收到错误消息no pg_hba.conf entry for host

no pg_hba.conf entry for host "173.18.54.553", user "db_user", database "db_name", SSL on FATAL: no pg_hba.conf entry for host "xxx.xx.xxx.xxx", user "hcexhbhx", database "postgres", SSL off

在做了一些研究之后,我编辑了我的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
    host    all             all             173.66.143.244/24       md5 (new entry)
    host    all             all             0.0.0.0/0 …
Run Code Online (Sandbox Code Playgroud)

postgresql

6
推荐指数
1
解决办法
2万
查看次数

标签 统计

postgresql ×1