我已经使用 Wamp 服务器很长时间了。它与 MySQL 一起提供。今天我不得不从 mysql 更改为 PostgreSQL。我试过安装 Postgres,下载并完成安装。但是当我试图运行一个 php 程序来从表中获取一些数据时,
<?php
$link = pg_connect("host=192.168.2.43 dbname=DataFetcher user=postgres password=user");
echo "Connection Established";
?>
它说Call to undefined function pg_connect()
,这意味着没有检测到 Postgres。
可能是什么问题?