我正在使用Loopback与MySql。当我运行时,随机出现以下错误:
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
- 我应该如何解决这个问题?在Loopback端配置还是MySQL配置?注意:我正在使用MAMP来管理MySQL。
- 启动时需要很长时间才能成功运行且没有错误,有什么办法可以快速重启吗?