【发布时间】:2021-10-27 09:05:30
【问题描述】:
您好,我正在尝试连接到 postgres 数据库,但在连接时出现错误
psql: error: FATAL: no pg_hba.conf entry for host "10.x.x.x", user "user", database "db"
我尝试过的 我尝试配置 pg_hba.conf 文件,我正在使用打开的 vpn 进行连接,我在 pg_hba.conf 文件中进行了这些更改,如下面的截图所示。
我在 cmd 提示符下运行以下命令
psql -h hostaddress -p 5432 -U username -d databasename
【问题讨论】:
-
x和*是同一个东西吗?
标签: postgresql openvpn