如何解决错误“root@localhost 错误访问被拒绝”在 phpMyAdmin 和 SqlYog (Windows 7) 中
我已经安装了 xampp
和 sqlyog
,但是当我尝试打开 xampp
phpMyAdmin 时出现以下错误:
1045 - 用户“root”@“localhost”的访问被拒绝(使用密码:NO) 配置中定义的 controluser 连接失败。
当我尝试打开 SqlYog
时,它也显示错误:
错误号:2003 无法连接到本地主机上的 MySql 服务器(10061)
如何解决错误?
I have installed xampp
and sqlyog
, but when I try to open xampp
phpMyAdmin gives me this error:
1045 - Access denied for user 'root'@'localhost' (using password: NO)
Connection for controluser as defined in your configuration failed.
When I try open SqlYog
, it also shows an error:
Error No :2003
Can't connect to MySql Server on localhost(10061)
How do I resolve errors?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
错误编号 2003 在 Webyog 常见问题解答中进行了描述,请查看以下内容:
http://www.webyog .com/faq/content/23/15/en/error-no-2003-can_t-connect.html
并且,错误 1045 是最常见的身份验证错误:http://webyog.com/faq/content /23/18/en/error-no-1045-connection-denied.html(如果这是问题,则首先检查是否允许用户从远程主机连接。用户应定义为'user'@'%' 而不是 'user'@'localhost')
The error no 2003 is described in Webyog FAQ here, please go through this:
http://www.webyog.com/faq/content/23/15/en/error-no-2003-can_t-connect.html
And, error 1045 is the the most common authentication error : http://webyog.com/faq/content/23/18/en/error-no-1045-connection-denied.html (if this is the problem then first check that the user is allowed to connect from remote hosts. User should be defined as 'user'@'%' and not 'user'@'localhost')
鉴于SqlYog似乎是一个商业软件,我没有使用过。但是查看他们的网站,我在他们的常见问题解答中发现了这一点 - http://www.webyog.com/faq/category/16/how-does-sqlyog-connect-to-mysql.html 。希望有帮助。
Given that SqlYog seems to be a commercial software, I haven't used it. But looking at their site I found this in their FAQ - http://www.webyog.com/faq/category/16/how-does-sqlyog-connect-to-mysql.html . Hope it helps.