$dbconn = pg_connect("host=localhost dbname=mydbname user=myuser password=mypass") or die(pg_last_error());
回报Unable to connect to PostgreSQL server: FATAL: no pg_hba.conf entry for host "::1 ...",
PHP的连接到PostgreSQL
我必须做什么?
P.S.在文件php.ini
模块extension php_pgsql.dll
已启用
你的'pg_hba.conf'文件包含什么? – hjpotter92
我不知道,这是远程服务器。 – RIKI
那么你如何使用'host = localhost'呢? – hjpotter92