我无法在 wampserver 中访问 phpmyadmin
我在wampserver上安装了zend-optimizer,然后访问链接地址 “localhost/phpmyadmin”收到错误消息
"Cannot load mysqli extension. Please check your PHP configuration. - Documentation"
当我访问文件夹“localhost/demo”时收到错误消息
“无法连接到数据库”
我使用 Wampserver(Php 5.2.8、Mysql 5.5.8 和 Apache 2.2.17)
I install zend-optimizer on wampserver, then I access link address
"localhost/phpmyadmin" is get error message
"Cannot load mysqli extension. Please check your PHP configuration. - Documentation"
When I access folder "localhost/demo" is get error message
"Unable to connect to the database"
I using Wampserver (Php 5.2.8, Mysql 5.5.8 and Apache 2.2.17)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
mysqli
是一个扩展,有点像驱动程序,PHP 使用它与 MySQL 进行通信。它是 PHPMyAdmin 能够连接到 MySQL 的少数扩展之一。您必须将mysqli
扩展安装到您的 PHP 设置中,或者切换您的 PHPMyAdmin 配置以使用不同的驱动程序。这里是 PHP 手册中的概述,描述了如何在Windows 环境。
mysqli
is an extension, kind of like a driver, which PHP uses to communicate with MySQL. It is one of a small handful of extensions PHPMyAdmin is able to connect to MySQL with. You'll have to install themysqli
extension into your PHP setup or switch your PHPMyAdmin configuration to use a different driver.Here is an overview from the PHP manual describing how to install PHP extensions in a Windows environment.
永远不要害怕!简单配置就在这里!单击 Wamp 托盘图标中的 PHP 菜单。然后转到扩展子菜单并向下滚动列表以找到 php_mysqli。单击它(这将启用扩展),然后重新启动 Wamp 服务。
或者,您可以修改 PHP.ini。查找行
;extension=php_mysqli.dll
并删除分号。然后重新启动Wamp服务。应该是这样。
Never fear! Easy configuration is here! Click on PHP menu in Wamp tray icon. Then go to Extension submenu and scroll down the list to find php_mysqli. Click it (which will enable the extension) and then restart Wamp services.
Alternatively you can modify your PHP.ini. Look for the line
;extension=php_mysqli.dll
and remove the semi-colon. Then restart the Wamp services.That should be it.