php - 安装期间找不到 MediaWiki 的数据库驱动程序

标签 php mysql database compilation mediawiki

我的服务器上已经安装了 MYSQL 和 apache 服务器。 但我仍然遇到了这些问题。 我不明白用 --with-mysql 编译 php 的术语 我应该在哪里编译?我正在使用窗口服务器。 或者如何安装mysql.so模块??

Checking environment...

Please include all of the lines below when reporting installation problems. PHP 5.2.14 installed Could not find a suitable database driver! For MySQL, compile PHP using --with-mysql, or install the mysql.so module For PostgreSQL, compile PHP using --with-pgsql, or install the pgsql.so module For SQLite, compile PHP using --with-pdo_sqlite, or install the pdo_sqlite.so module For MSSQL, compile PHP using --with-mssql_not_ready, or install the mssql_not_ready.so module For DB2, compile PHP using --with-ibm_db2, or install the ibm_db2.so module For Oracle, compile PHP using --with-oci8, or install the oci8.so module

最佳答案

查看/php_install_dir/extensions。应该有一个名为“php_mysql.dll”的文件。如果是这样,请在 php.ini 中启用它。如果没有,请下载 dll,将其复制到扩展目录并在 php.ini 中启用。请记住重新启动 Apache。

参见this page了解更多信息(请务必阅读评论)。

关于php - 安装期间找不到 MediaWiki 的数据库驱动程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4254258/

相关文章:

php - 学说映射可以,但数据库验证不行

mysql - 与 where 条件相加相异连接

php - mysqli 查询成功但给出错误号 0

android - Kripton数据库library limit select查询

php - YouTube PHP API: session 状态与NULL字符串(10) “1494600193”不匹配

PHP MVC问题

php - 从两个表中选择具有公共(public)列的所有内容 - 相同的列名

php - Mysql 存储过程

mysql - 生成的存储过程失败

php - 部分代码被跳过