Mysql 我已经在配置文件中修改了。我仍然得到了错误

Mysql 我已经在配置文件中修改了。我仍然得到了错误,mysql,Mysql,我得到这个错误。。。1045-使用密码拒绝用户“root”@“localhost”的访问:否 我已将用户名和密码设置为“root”。我已经使用了xampp服务器 $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['compress'] = false; $cfg['Servers'][$i]['extension'] = 'mysq

我得到这个错误。。。1045-使用密码拒绝用户“root”@“localhost”的访问:否

我已将用户名和密码设置为“root”。我已经使用了xampp服务器

$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'root';

您可以使用mysql-u root-proot从命令行连接吗?还有,哪个配置文件?您正在使用哪个应用程序?顺便说一句:使用密码:否表示您的应用程序没有将密码传递给mysql$cfg['Servers'][$i]['AllowNoPassword']=false;那么,如何在没有密码的情况下连接mysql呢。请按照Andreas的要求尝试连接到mysql服务器。