如题,phpmyadmin登录报错,网上看到一个解决方法:(232条消息) mysqli_real_connect(): (HY000/1045): Access denied for user ‘root‘@‘localhost‘ (using password: YES_学霸的男人的博客-CSDN博客
我使用的Appserv安装的mysql,对应的文件是config.sample.inc.php ,将注释掉的
// $cfg['Servers'][$i]['controluser'] = 'pma';// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
打开,改为:
$cfg['Servers'][$i]['controluser'] = 'root';$cfg['Servers'][$i]['controlpass'] = '13245678';
注意 $cfg['Servers'][$i]['controlpass'] = '13245678'; 这里必须改成8位以上字符的密码,不然还是不能登录,改完后保存文件,使用刚刚改完的用用户名和密码重新成功登录PHPmyadmin
来源地址:https://blog.csdn.net/qq_42043599/article/details/127814940