简体   繁体   English

配置中定义的控制用户连接失败。 XAMPP

[英]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说:文档

1045 - Access denied for user 'root'@'localhost' (using password: NO) 1045 - 用户'root'@'localhost'拒绝访问(使用密码:否)

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我喜欢美味饼干,但在这里我们谈论的是浏览器饼干......

  1. Try cleaning your browser coookies and see it helps to resolve this issue, before even trying any configuration changes. 尝试清理浏览器coookies并在尝试任何配置更改之前看到它有助于解决此问题。

  2. Try using XAMPP Control panel "Admin" button instead of usual http://localhost or http://localhost/phpmyadmin 尝试使用XAMPP控制面板“管理”按钮而不是通常的http://localhost or http://localhost/phpmyadmin

  3. Try direct link: http://localhost/phpmyadmin/main.php or http://127.0.0.1/phpmyadmin/main.php 尝试直接链接: http://localhost/phpmyadmin/main.phphttp://127.0.0.1/phpmyadmin/main.php

  4. 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跟踪你的旧设置。

在此输入图像描述

It create problem to install any software with same like skype ... Or you start xampp later login to skype So Please start before xampp login skype ... No error will be appear 它创建问题安装任何软件与skype相同...或者你开始xampp以后登录到skype所以请在xampp登录skype之前启动...没有错误将出现

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在配置中定义的controluser的XAMPP连接失败phpmyadmin xampp - XAMPP Connection for controluser as defined in your configuration failed phpmyadmin xampp XAMPP 中的 phpMyAdmin 的“配置中定义的 controluser 连接失败” - "Connection for controluser as defined in your configuration failed" with phpMyAdmin in XAMPP Msql:无法连接:无效的设置。 在配置中定义的controluser的连接失败 - Msql: Cannot connect: invalid setting. Connection for controluser as defined in your configuration failed Phpmyadmin.mysqli_real_connect(): (HY000/2002): 权限被拒绝。 您的配置中定义的 controluser 连接失败 - Phpmyadmin. mysqli_real_connect(): (HY000/2002): Permission denied. Connection for controluser as defined in your configuration failed DDEV 到 XAMPP 的连接配置 - DDEV to XAMPP connection configuration XAMPP配置在XP上失败 - XAMPP configuration failed on XP 本地主机上的 WordPress 错误,XAMPP:“安装失败:下载失败。 没有找到工作交通工具” - WordPress error on localhost, XAMPP: “Installation failed: Download failed. No working transports found” 最近安装的XAMPP并停留在“ controluser的连接失败” - Recently installed XAMPP and stuck on “Connection for controluser failed” Swift Json连接失败。 JSON对象正确吗? - Swift Json connection failed. JSON object correct? PayPal预先批准请求失败。 不允许用户执行此操作 - PayPal preapproval request failed. User is not allowed to perform this action
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM