【发布时间】: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