【发布时间】: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 代替吗?
标签: php phpmyadmin