我一直在寻找如何解决这个问题,但却无法到达任何地方。
所以我已经安装了WampServer
并重新安装了几次,当我尝试加载localhost/phpmyadmin
时出现此错误:
#1045 - Access denied for user 'root'@'localhost' (using password: YES)
这也是我的config.inc.php
文件:
/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
不知道该怎么做,如果我尝试加载mySQL控制台,我也需要在那里使用密码,我不知道如何修复。即使我重新安装程序,我也会遇到同样的错误。
答案 0 :(得分:-1)
Wamp通常没有MySQL密码。 尝试使用此版本重播C:/wampdirectory/apps/phpmyadmin-versionthing/config.inc.php: (只需删除当前文件的整个内容)
<?php
$cfg['blowfish_secret'] = 'a8b7c6d';
$i = 0;
$i++;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$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'] = true;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
&GT;