我收到以下错误:致命错误:在我的php脚本中找不到类'mysqli'我安装了php5.3.3-7,当我运行apt-cache show php5-mysql时我得到了这个
Description: MySQL module for php5
This package provides modules for MySQL database connections directly from
PHP scripts. It includes the generic "mysql" module which can be used
to connect to all versions of MySQL, an improved "mysqli" module for
MySQL version 4.1 or later, and the pdo_mysql module for use with
the PHP Data Object extension.
Run Code Online (Sandbox Code Playgroud)
在php信息中根本没有关于mysql的内容.我如何找到延伸,我是否必须进行延伸?我的php.ini中有很多对mysqli的引用.但有些事情是错的.
wom*_*ble 16
你真的安装过php5-mysql包吗? apt-cache show将为您提供有关未安装的软件包的信息(您希望dpkg -l列出已安装的软件包).如果已安装软件包,请仔细检查它是否已启用(/etc/php5/conf.d/mysql.ini是要查看的位置).
| 归档时间: |
|
| 查看次数: |
42116 次 |
| 最近记录: |