我在Window上运行Moodle测试环境,运行PHP5.2.10和MySQL 5.1.36-社区。当我从Moodle 1.9.9升级到2.0时,我得到了以下错误。
Error: database driver problem detected
The site administrator should verify server configuration
PHP has not been properly configured with the MySQLi extension so that it can communicate with MySQL. Please check your php.ini file or recompile PHP. MySQLi extension is not available for PHP 4.我还尝试更改config.ini中的dbtype='mysqli‘,但仍然看到相同的错误。
如果你能提供一些建议来解决这个错误,我将不胜感激。
提前谢谢你。
发布于 2012-11-28 08:17:00
我在一段时间前也遇到了这个错误,我花了很长时间才找到解决这个问题的方法。基本上你需要做的就是给你的php环境添加一个扩展。以下解决方案适用于运行Apache和MySQL的Microsoft Windows Server 2003:
开始吧,从现在开始你应该会很好;)希望这对你有帮助!!
发布于 2016-06-05 16:48:07
对于我的情况:确保模块a)已安装b)已在php.ini中启用
发布于 2017-05-29 12:45:07
对于那些正在寻找LINUX解决方案的人。
取消注释
;extension=mysqli.so
在位于php文件夹中的文件'php.ini‘的’动态扩展‘部分(在我的例子中是’/etc/php/php.ini‘)
https://stackoverflow.com/questions/13595579
复制相似问题