[英]Connection for control user as defined in your configuration failed. xampp
when i tried to uninstall xampp and reinstall xampp.I received below error message when i go phpmyadmin 当我试图卸载xampp并重新安装xampp。我收到下面的错误消息,当我去phpmyadmin
Need help and guide to solve it .thanks 需要帮助和指导来解决它。谢谢
Error 错误
MySQL said: Documentation MySQL说:文档
Connection for controluser as defined in your configuration failed. 配置中定义的controluser连接失败。
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. phpMyAdmin尝试连接到MySQL服务器,服务器拒绝连接。 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.
您应该检查配置中的主机,用户名和密码,并确保它们对应于MySQL服务器管理员提供的信息。
Basically what is happening here is that you have wrong credentials in your[ .../phpMyadmin/config.inc.php] file .This occurs if you have another mysql instance installed and the username and the passowrd that you use in this file is different.You have to change the username and the password in the above file to match. 基本上这里发生的是你的[... / phpMyadmin / config.inc.php]文件中有错误的凭据。如果你安装了另一个mysql实例,并且你在这个文件中使用的用户名和passowrd是不同。您必须更改上述文件中的用户名和密码才能匹配。
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root'; //Change this to your values
$cfg['Servers'][$i]['password'] = 'root'; //Change this to your values
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';
Try changing localhost
to 127.0.0.1
. 尝试将
localhost
更改为127.0.0.1
。 On my machine this was the culprit.. 在我的机器上,这是罪魁祸首..
Perhaps you have set a new password during the installation of xampp. 也许您在安装xampp期间设置了新密码。
First solution: Delete the complete XAMPP folder after installation but safe the htdocs folder before. 第一种解决方案:安装后删除完整的XAMPP文件夹,但之前保护htdocs文件夹。
Second: Go to the config file "phpmyadmin/config.inc.php" there are the information for the control user. 第二:转到配置文件“phpmyadmin / config.inc.php”,有控制用户的信息。 Check the values.
检查值。
Third option: Take a console a call the programm "xampp/mysql/bin/mysql.exe" when you use Windows with this you can connect to the database. 第三个选项:当您使用Windows时,可以通过控制台调用程序“xampp / mysql / bin / mysql.exe” ,您可以连接到数据库。 Something like "mysql.exe -uroot -p" .
像“mysql.exe -uroot -p”之类的东西。
enter image description here 在此输入图像描述
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. phpMyAdmin尝试连接到MySQL服务器,服务器拒绝连接。 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.
您应该检查配置中的主机,用户名和密码,并确保它们对应于MySQL服务器管理员提供的信息。
I had a similar issues fresh install and same error surprising. 我有类似的问题全新安装和相同的错误令人惊讶。 After trying couple of forum help nothing seem to work and I thought it can't be that difficult...what was I missing with a new install?
在尝试了几个论坛帮助后,似乎没有任何工作,我认为这不会那么困难......我在新安装时错过了什么?
Finally I figured out "COOKIES" AHA I love that Yummy Cookies but here we are talking about browser cookies... 最后我想出了“COOKIES”AHA我喜欢美味饼干,但在这里我们谈论的是浏览器饼干......
Try cleaning your browser coookies and see it helps to resolve this issue, before even trying any configuration changes. 尝试清理浏览器coookies并在尝试任何配置更改之前看到它有助于解决此问题。
Try using XAMPP Control panel "Admin" button instead of usual http://localhost or http://localhost/phpmyadmin
尝试使用XAMPP控制面板“管理”按钮而不是通常的
http://localhost or http://localhost/phpmyadmin
Try direct link: http://localhost/phpmyadmin/main.php
or http://127.0.0.1/phpmyadmin/main.php
尝试直接链接:
http://localhost/phpmyadmin/main.php
或http://127.0.0.1/phpmyadmin/main.php
Finally Try this: http://localhost/phpmyadmin/index.php?db=phpmyadmin&server=1&target=db_structure.php
最后试试这个:
http://localhost/phpmyadmin/index.php?db=phpmyadmin&server=1&target=db_structure.php
Somehow if you have old installation and you upgraded to new version it keeps track of your old settings through cookies. 不知何故,如果你有旧安装并升级到新版本,它会通过cookie跟踪你的旧设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.