phpMyAdmin访问被拒绝

时间:2016-05-26 08:57:19

标签: mysql phpmyadmin wamp wampserver

我正在使用wamp服务器,我的phpMyAdmin页面返回了以下错误。

  

Wamp服务器版本:2.2 MySQL版本:5.5.24

     

#1045 - 拒绝用户&root;' @' localhost' (使用密码:是)

我将配置文件 wamp \ apps \ phpmyadmin4.1.14 \ config.inc.php 编辑为:

$cfg['Servers'][$i]['user'] = 'root'; 
$cfg['Servers'][$i]['password'] = ''; 

但它没有解决问题。任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:1)

在你的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'] = 'root';
    $cfg['Servers'][$i]['password'] = '';
    $cfg['Servers'][$i]['AllowNoPassword'] = true;
相关问题