【发布时间】:2010-10-07 12:40:50
【问题描述】:
WAMP 安装正常,没有问题,但是...
进入 phpMyAdmin 时,我从 phpMyAdmin 收到如下错误:
Cannot load mysqli extension. Please check your PHP configuration
另外,phpMyAdmin 文档对此错误消息的解释如下:
要连接到 MySQL 服务器,PHP 需要一组 MySQL 函数 称为“MySQL 扩展”。这个扩展可能是 PHP 的一部分 分发(编译入),否则需要加载 动态的。它的名字可能是 mysql.so 或 php_mysql.dll。 phpMyAdmin 尝试加载扩展但失败。通常情况下, 通过安装一个名为“PHP-MySQL”的软件包解决了问题 或类似的东西。
最后,apache_error.log 文件有以下 PHP 警告(参见 mySQL 警告):
PHP Warning: Zend Optimizer does not support this version of PHP - please upgrade to the latest version of Zend Optimizer in Unknown on line 0
PHP Warning: Zend Platform does not support this version of PHP - please upgrade to the latest version of Zend Platform in Unknown on line 0
PHP Warning: Zend Debug Server does not support this version of PHP - please upgrade to the latest version of Zend Debug Server in Unknown on line 0
PHP Warning: gd wrapper does not support this version of PHP - please upgrade to the latest version of gd wrapper in Unknown on line 0
PHP Warning: java wrapper does not support this version of PHP - please upgrade to the latest version of java wrapper in Unknown on line 0
PHP Warning: mysql wrapper does not support this version of PHP - please upgrade to the latest version of mysql wrapper in Unknown on line 0
所以,由于某种原因,PHP 无法识别 mysql 扩展。
有人知道为什么吗?任何解决方案或解决方法?
【问题讨论】:
-
我也有同样的问题。
标签: php mysql localhost phpmyadmin