$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