PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL: password authentication failed for user “postgres” in /var/www/html/index3.php on line 6
Error : Unable to open database
PHP Warning: pg_query() expects parameter 1 to be resource, boolean given in /var/www/html/index3.php on line 20
PHP Warning: pg_last_error() expects parameter 1 to be resource, boolean given in /var/www/html/index3.php on line 22
PHP Warning: pg_close() expects parameter 1 to be resource, boolean given in /var/www/html/index3.php on line 26
第一:缺少psql扩展
yum 安装你的扩展,如果不是yum安装的,就需要自己添加链接库即可。
第二:你的数据库密码有错。
不懂的可以关注私信我,尽全力帮助你们解决问题。