1

我一直在寻找如何解决这个问题,但就是无处可去。

所以我现在已经安装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 控制台,我也需要在那里使用我不知道如何修复的密码。即使我重新安装程序,我也会遇到同样的错误。

4

1 回答 1

-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'] = '';

?>

于 2013-07-02T11:41:18.323 回答