【问题标题】:phpMyAdmin not allowing accessphpMyAdmin 不允许访问
【发布时间】:2011-07-28 21:33:58
【问题描述】:

我正在使用 WAMP/phpMyAdmin 但无法访问它:( 它需要密码,并提供root用户名和黑色密码拒绝访问!!!

【问题讨论】:

  • 你试过root吗?如果您需要更多帮助,则必须更具体。
  • 我没有尝试过root root但尝试过root和空白密码

标签: mysql phpmyadmin wampserver


【解决方案1】:

重新安装 Wamp 可能是一个解决方案,我喜欢默认状态下的所有内容

【讨论】:

  • 对我来说,我不能只打开 phpMyAdmin,剩下的部分工作得很好。
【解决方案2】:

看看http://dev.mysql.com/doc/refman/5.1/en/adding-users.html

创建一个新帐户,然后从 phpMyAdmin 目录打开 config.inc.php 并进行这些更改

<?php

/* Servers configuration */
$i = 0;

/* 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;

/* End of servers configuration */

$cfg['DefaultLang'] = 'en-utf-8';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';

?> 

【讨论】: