2013-08-01 24 views
0

所以我一直有问题连接到我的phpmyAdmin服务器,但我已经通过编辑config.inc.php文件在PMA文件夹中,并改变了我的用户名根和密码为根,所以它现在看起来是这样的:phpmyadmin:“无法连接:无效设置”,但仅限于'用户'选项卡

$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. 

我知道这是荒谬的,因为我可以完全访问所有数据库和设置以及我的凭据都是正确的。任何人都知道这是为什么?

注意我在Windows环境下运行XAMPP 3.1.0,Apache 2.4.7,& MySQL 5.5.27。

回答

0

您是否为数据库创建了新用户?您应该避免使用root用户,并为每个数据库创建一个新用户,然后使用该用户。

相关问题