gpt4 book ai didi

mysql - 连接失败 : Error: connect ETIMEDOUT

转载 作者:行者123 更新时间:2023-11-30 22:11:50 27 4
gpt4 key购买 nike

我在 MySql 中使用 Loopback。我在运行时随机出现以下错误

nodemon .

node .
Web server listening at: http://0.0.0.0:3000
Browse your REST API at http://0.0.0.0:3000/explorer
Connection fails: Error: connect ETIMEDOUT
It will be retried for the next request.
events.js:160
throw er; // Unhandled 'error' event
^

Error: connect ETIMEDOUT
at PoolConnection.Connection._handleConnectTimeout
  1. 我该如何解决这个问题?在 Loopback 端配置或 MySQL配置?注意:我正在为 MySQL 使用 MAMP。
  2. 需要很长时间才能成功启动而不出错。什么我应该如何快速重启?

最佳答案

这似乎是 MySQL 和 Loopback 的一个已知问题,它会导致在 Loopback 首次启动时连接在重负载下超时:

https://github.com/strongloop/loopback-connector-mysql/issues/210

一些可能的解决方案:

关于mysql - 连接失败 : Error: connect ETIMEDOUT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39861042/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com