phpmyadmin:“;无法连接:设置无效&”;,但仅适用于';用户';选项卡


phpmyadmin: "Cannot connect: invalid settings.", but only for 'users' tab

所以我在连接到phpmyAdmin服务器时遇到了问题,但我通过编辑PMA文件夹中的config.inc.php文件并将用户名更改为root,将密码更改为root来解决问题,所以现在看起来是这样的:

$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'root';

这一切都很好,我的网站使用相同的凭据以类似的方式连接到数据库。问题是,我无法访问PHPMyAdmin界面中的"用户"选项卡——我将这个错误集中在一个可爱的红色对话框中:

MySQL said:
Cannot connect: invalid settings.
phpMyAdmin tried to connect to the MySQL server, and the server rejected the 
connection. You should check the host, username and password in your 
configuration and make sure that they correspond to the information given 
by the administrator of the MySQL server.

我知道这很荒谬,因为我可以完全访问所有数据库和设置,而且我的凭据是正确的。有人知道为什么会这样吗?

注意,我正在运行XAMPP 3.1.0、Apache 2.4.7和;windows环境中的MySQL 5.5.27。

您为数据库创建了新用户吗?您应该避免使用根用户,并为每个数据库创建一个新用户,而是使用该用户。