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

时间:2014-01-30 06:06:08

标签: mysql

我目前在xampp(1.7.4)上收到此错误。 我正在研究php,然后我重新启动了我的计算机,然后当我打开phpmyadmin时,它显示了我的错误。 不知道发生了什么。 我现在要做什么? 我搜索了很多& reinstall xampp 1.7.4。但没有任何帮助?

它说, 错误

MySQL说:文档

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

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

3 个答案:

答案 0 :(得分:8)

尝试清理浏览器Cookie,并在尝试进行任何配置更改之前查看它有助于解决此问题。

答案 1 :(得分:1)

当您遇到#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,我忘记设置默认套接字,端口和主机。我修复了它,但刷新我的浏览器它不会工作,问题是这个。

答案 2 :(得分:-2)

go to C:\Windows\System32\drivers\etc 
edit host 
add 
127.0.0.1 localhost
and restart server
refresh

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

相关问题