【问题标题】:#2002 - — The server is not responding (or the local server's socket is not correctly configured)#2002 - 服务器没有响应(或本地服务器的套接字配置不正确)
【发布时间】:2020-04-25 05:35:07
【问题描述】:

我正在使用 UniServer Zero XIII 13.3.2。几个小时前对我来说一切正常。我刚刚让我的电脑进入睡眠状态,我猜是什么东西突然破坏了 MySQL 套接字或连接,因为下次我启动电脑并尝试连接时,我收到了这个错误:

#2002 -  — The server is not responding (or the local server's socket is not correctly configured).

我尝试重新启动计算机并多次启动/停止 Apache 和 MySQL。理论上,MySQL 启动成功是因为我看到的是绿色方块,而不是红色:

不过,当我转到 MySQL 控制台时,我看到了这个:

Warning: Using a password on the command line interface can be insecure.
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (10061)

C:\Users\[path]\UniformServer13_3_2_ZeroXIII\UniServerZ\core\mysql\bin>

另外,当我转到http://localhost:90/us_opt1/index.php 时,我看到了这个:

Welcome to phpMyAdmin

Error
MySQL said: Documentation

#2002 -  — The server is not responding (or the local server's socket is not correctly configured).
 mysqli_real_connect(): (HY000/2002): No se puede establecer una conexi�n ya que el equipo de destino deneg� expresamente dicha conexi�n.
 Connection for controluser as defined in your configuration failed.
 mysqli_real_connect(): (HY000/2002): No se puede establecer una conexi�n ya que el equipo de destino deneg� expresamente dicha conexi�n.
Retry to connect

很明显,MySQL 连接不成功,即使我可以从 UniServer Zero XIII 面板中看到的内容成功停止和启动 MySQL。关于什么破坏了 MySQL 连接或环境以及如何修复它的任何想法?谢谢。

【问题讨论】:

    标签: mysql websocket xampp wamp server-configuration


    【解决方案1】:

    我不知道出了什么问题,但我所做的是从https://sourceforge.net/projects/miniserver/files/Uniform%20Server%20ZeroXIII/13_3_2_ZeroXIII/ 再次下载 UniServer Zero XIII 13.3.2,Apache 和 MySQL 都启动并运行,从这个新安装中再次正常工作。当然,我不得不将源代码移动到我完成安装的这个新文件夹位置。我想分享这个解决方法,而不是试图弄清楚发生了什么,正如我在这个答案开头提到的那样,我不知道。

    【讨论】:

      猜你喜欢
      • 2014-08-09
      • 2014-02-22
      • 2018-11-20
      • 2012-04-28
      • 1970-01-01
      • 2012-01-12
      • 1970-01-01
      • 2012-04-10
      相关资源
      最近更新 更多