我是 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
请让我知道,这里出了什么问题。