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

问题描述 投票:1回答:1

我正在使用UniServer Zero XIII 13.3.2。几个小时前,一切对我来说都是正常的。我刚刚使我的PC进入睡眠状态,我猜是突然有东西中断了MySQL套接字或连接,因为下次启动计算机并尝试连接时,我收到此错误:

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

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

enter image description here

尽管如此,当我进入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

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

mysql websocket xampp wamp server-configuration
1个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.