我的Wamp服务器是安装的,但我无法访问PHPMyAdmin。 给出错误......
**ERROR**
**MySQL said: Documentation**
*1045 - Access denied for user 'root'@'localhost' (using password: NO)*
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.**
有人可以帮我吗?
亲切的问候。
答案 0 :(得分:1)
您必须先配置phpMyadmin。试试这个。 http://www.slideshare.net/triniwiz/wamp-20949805
注意幻灯片19.它将解决您的问题。
你所要做的就是, 编辑你的phpmyadmin config.inc.php文件:
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '3306';
$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'] = '**your-root-username**';
$cfg['Servers'][$i]['password'] = '**root-password**';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
-Regards
答案 1 :(得分:0)
在config.default.php中更改以下数据库配置值:
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['ssl'] = false;
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'YOUR_Password';
它对我有用。希望这有帮助!