问题:PHPMYADMIN初始化页面显示

 mysqli_real_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES)

 使用配置文件中定义的控制用户连接失败。

phpmyadmin error:(HY000/1045): Access denied for user

解决办法:

在phpmyadmin的目录下编辑config.inc.php文件将这2行改为对应的mysql的账号,

    $cfg['Servers'][$i]['controluser'] = $dbuser;

    $cfg['Servers'][$i]['controlpass'] = $dbpass;phpmyadmin error:(HY000/1045): Access denied for user

保存后重新打开首页。错误没了

phpmyadmin error:(HY000/1045): Access denied for user