我是 PHP 的新手。执行我的应用程序时,出现了以下错误:
在 phpMyadmin 中,代码如下:
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['AllowNoPasswordRoot'] = true;
由于我已经备份了,所以我已经更改了上面的代码为
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'Pass123';
$cfg['Servers'][$i]['AllowNoPasswordRoot'] = true;
现在我遇到了以下错误
访问被拒绝,用户 'root'@'localhost' (使用密码: YES) MySQL 错误 # :1045
请告诉我,这里出了什么问题。