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 扩展。
有人知道为什么吗?任何解决方案或解决方法?
原文由 localhost 发布,翻译遵循 CC BY-SA 4.0 许可协议
我删除了程序文件中的 PHP,一切都开始工作了,问题是有两个 pHp 安装