简体   繁体   English

我无法在wampserver中访问phpmyadmin

[英]I can't access phpmyadmin in wampserver

I install zend-optimizer on wampserver, then I access link address "localhost/phpmyadmin" is get error message 我在wampserver上安装了zend-optimizer,然后访问链接地址“ localhost / phpmyadmin”却收到错误消息

"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" 当我访问文件夹“ localhost / demo”时收到错误消息"Unable to connect to the database"

I using Wampserver (Php 5.2.8, Mysql 5.5.8 and Apache 2.2.17) 我使用Wampserver(Php 5.2.8,Mysql 5.5.8和Apache 2.2.17)

mysqli is an extension, kind of like a driver, which PHP uses to communicate with MySQL. mysqli是一种扩展,有点像驱动程序,PHP用于与MySQL进行通信。 It is one of a small handful of extensions PHPMyAdmin is able to connect to MySQL with. 它是PHPMyAdmin能够用来连接MySQL的少数扩展之一。 You'll have to install the mysqli extension into your PHP setup or switch your PHPMyAdmin configuration to use a different driver. 您必须将mysqli扩展安装到PHP设置中,或切换PHPMyAdmin配置以使用其他驱动程序。

Here is an overview from the PHP manual describing how to install PHP extensions in a Windows environment. 这是 PHP手册的概述 ,描述了如何在Windows环境中安装PHP扩展。

Never fear! 从不畏惧! Easy configuration is here! 简单的配置在这里! Click on PHP menu in Wamp tray icon. 单击Wamp托盘图标中的PHP菜单。 Then go to Extension submenu and scroll down the list to find php_mysqli. 然后转到扩展子菜单并向下滚动列表以找到php_mysqli。 Click it (which will enable the extension) and then restart Wamp services. 单击它(将启用扩展),然后重新启动Wamp服务。

Alternatively you can modify your PHP.ini. 或者,您可以修改您的PHP.ini。 Look for the line ;extension=php_mysqli.dll and remove the semi-colon. 查找;extension=php_mysqli.dll;extension=php_mysqli.dll并删除分号。 Then restart the Wamp services. 然后重新启动Wamp服务。

That should be it. 应该是这样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM