phpMyAdmin不允许访问

时间:2011-04-04 03:05:11

标签: mysql phpmyadmin wampserver

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

2 个答案:

答案 0 :(得分:0)

查看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'] = '';

?> 

答案 1 :(得分:0)

重新安装Wamp可能是一个解决方案,我喜欢它的默认条件