#2002 - 服务器没有响应(或者本地 MySQL 服务器的套接字配置不正确)[重复]

Posted

技术标签:

【中文标题】#2002 - 服务器没有响应(或者本地 MySQL 服务器的套接字配置不正确)[重复]【英文标题】:#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured) [duplicate] 【发布时间】:2014-02-22 07:36:23 【问题描述】:

我目前在xampp(1.7.4) 上收到此错误。 我正在使用 php,然后我刚刚重新启动计算机,然后当我打开 phpmyadmin 时,它向我显示了这个错误。 不知道会发生什么。 我现在该怎么办? 我搜索了很多 & reinstall xampp 1.7.4 。但没有任何帮助?

它说, 错误

mysql 说:文档

2002 - 服务器没有响应(或本地 MySQL 服务器的套接字配置不正确)

配置中定义的 controluser 连接失败。

【问题讨论】:

【参考方案1】:

在尝试任何配置更改之前,请尝试清理您的浏览器 cookie 并查看它是否有助于解决此问题..

【讨论】:

我在***上搜索了很多问题,这是解决我问题的唯一答案.. 试试这个SO 我尝试了隐身模式(相当于删除cookie),但问题仍然存在。【参考方案2】:

当您遇到#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured) 错误时

网址已更改为/phpmyadmin/error.php?lang=en&dir=ltr&type=Error&error=%232002+-+The+server+is+not+responding+%28or+the+local+MySQL+server%27s+socket+is+not+correctly+configured%29 并且不会重定向回来。

所以你必须检查网址是/phpmyadmin/

我的问题是install php56 on redhat6,我忘记设置默认套接字、端口和主机。我修复了它,但刷新我的浏览器它不起作用,问题是这样的。

【讨论】:

【参考方案3】:
go to C:\Windows\System32\drivers\etc 
edit host 
add 
127.0.0.1 localhost
and restart server
refresh

参考:https://***.com/questions/48382251/2002-the-server-is-not-responding-or-the-local-mysql-servers-socket-is-not/48382252#48382252

【讨论】:

以上是关于#2002 - 服务器没有响应(或者本地 MySQL 服务器的套接字配置不正确)[重复]的主要内容,如果未能解决你的问题,请参考以下文章

#2002 - 服务器没有响应(或者没有正确配置本地MySQL服务器的套接字)

#2002 - 服务器没有响应(或者本地 MySQL 服务器的套接字配置不正确)[重复]

#2002 - 服务器没有响应 (或者本地 MySQL 服务器的套接字没有正确配置) 是怎么回事。

phpmyadmin error:#2002 - 服务器没有响应

phpmyadmin 2002 错误

#2002 -lampp phpmyadmin