XAMPP MySQL服务错误带有节点JS给出套接字错误
我正在尝试在MacOS上本地启动我的应用程序。我使用的是XAMPP,端口号为3306,不幸的是,我会在一段时间后会出现套接字错误。
启动节点后,它表明它已加载,并且应该在网页上显示数据,但不幸的是没有。即使重新加载,它也表明查询已被执行,但是大约30秒后,服务终止了错误:
text: 'socket has unexpectedly been closed',
sql: null,
fatal: true,
errno: 45009,
sqlState: '08S01',
code: 'ER_SOCKET_UNEXPECTED_CLOSE'
我尝试使用其他端口:3307,8080对MySQL,但没有任何帮助。我还尝试在操作系统上关闭MySQL。该服务没有任何错误开始,如前所述,它在运行大约30秒后退出。
可能是什么问题以及在哪里寻找原因?
I am trying to launch my application locally on MacOS. I am using XAMPP, with port number of 3306, unfortunately I am getting socket error after some time and server quits.
After starting node, it shows that it loaded, and that it should display data on the webpage, unfortunately it does not. Even if reloaded, it shows that query has been executed, but after about 30 seconds the service is terminated giving an error:
text: 'socket has unexpectedly been closed',
sql: null,
fatal: true,
errno: 45009,
sqlState: '08S01',
code: 'ER_SOCKET_UNEXPECTED_CLOSE'
I have tried using a different port: 3307, 8080 for mySQL but nothing helped. I have also tried closing MySQL on my OS. The service starts without any errors, and as mentioned before, it quits after about 30 seconds of running.
What could be the issue and where to look for causes?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论