安装 wamp 服务器 2 后 phpmyadmin 停止工作

Posted

技术标签:

【中文标题】安装 wamp 服务器 2 后 phpmyadmin 停止工作【英文标题】:phpmyadmin stopped working after installing wamp server 2 【发布时间】:2011-09-07 14:28:01 【问题描述】:

你有一个工作的 phpmyadmin,当我为 windows 32bit 安装新版本的 wamp 2 时它停止工作。

现在我的 localhost 主页中出现了 mysqlBuddy,它 mysqlBuddy 可以工作,但是当我单击 phpmyadmin 时它不起作用。我得到的错误是拒绝访问。请阅读以下错误。

> Error
>     
>         MySQL said: Documentation Cannot connect: invalid settings.
> phpMyAdmin tried to
> 
>  connect to the MySQL server, and the
> server rejected the connection.  You
> should check the host, username and
> password in your configuration and
> make  sure that they correspond to the
> information given by the 
> administrator of the MySQL server.

我检查了 phpmyadmin 文件夹下的 config.inc.php 文件以查看配置设置,它们都正常

/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['AllowNoPassword'] = true;

我不知道我还能如何解决这个问题。 ?

【问题讨论】:

$cfg['Servers'][$i]['extension'] = 'mysqli';你不是用 mysql 代替吗? 【参考方案1】:

只是为了涵盖所有基础 - 您是否尝试在更改 PHPMyAdmin 的配置后重新启动 WAMP 服务器?

如果您仍然无法连接,请尝试按照说明here 重置您的 MySQL 根密码。

【讨论】:

以上是关于安装 wamp 服务器 2 后 phpmyadmin 停止工作的主要内容,如果未能解决你的问题,请参考以下文章

覆盖安装 wamp 后,Mysql 数据库无法正常工作。

重新安装 Windows 后 Wamp 服务器没有变绿

WAMP 更新和迁移后,mysql 表没有结构/主键

在wamp 2.0环境下面安装Zend Optimizer的方法

重新安装 WAMP 后 PHPmyadmin 无法正常工作

在 WAMP 中更改 MySQL 端口号后 PHPMyAdmin 页面错误