我遇到错误,尝试连接到企业数据库时,感谢您提供任何信息。
psycopg2.OperationalError: FATAL: client authentication failed
DETAIL: no pool_hba.conf entry for host "xxx.xx.xx.xxx", user "enterprisedb", database "enterprisedb", SSL off
HINT: see pgpool log for details
import psycopg2
conn = psycopg2.connect(database="enterprisedb", user = "enterprisedb", password = "wifimsdp", host = "xx.xxx.xx.xxx", port = "5431")
在 pool_hba.conf 中有以下条目
“local”仅适用于 Unix 域套接字连接
本地所有人都信任