Error: There is no database support in your PHP setup To install MySQL 3.23 or 4.0 support on FreeBSD: % cd /usr/ports/databases/php5-mysql/ % make clean install - or with portupgrade - % portinstall php5-mysql To install MySQL 4.1 support on FreeBSD: % cd /usr/ports/databases/php5-mysqli/ % make clean install - or with portupgrade - % portinstall php5-mysqli To install PostgreSQL support on FreeBSD: % cd /usr/ports/databases/php5-pgsql/ % make clean install - or with portupgrade - % portinstall php5-pgsql
时间: 2024-04-12 14:26:37 浏览: 21
To install database support in your PHP setup on FreeBSD, you can follow these steps:
1. For MySQL 3.23 or 4.0 support, run the following commands:
```
cd /usr/ports/databases/php5-mysql/
make clean install
```
Alternatively, you can use `portupgrade`:
```
portinstall php5-mysql
```
2. For MySQL 4.1 support, execute the following commands:
```
cd /usr/ports/databases/php5-mysqli/
make clean install
```
Alternatively, you can use `portupgrade`:
```
portinstall php5-mysqli
```
3. To install PostgreSQL support, use the following commands:
```
cd /usr/ports/databases/php5-pgsql/
make clean install
```
Alternatively, you can use `portupgrade`:
```
portinstall php5-pgsql
```
These commands will install the necessary packages for the respective database support in your PHP setup on FreeBSD.