at PoolConnection.Connection._handleConnectTimeout
at Object.onceWrapper (events.js:482:28)
at Socket.emit (events.js:376:20)
at Socket._onTimeout (net.js:483:8)
at listOnTimeout (internal/timers.js:555:17)
at processTimers (internal/timers.js:498:7)
errorno: "ETIMEDOUT"
code: "ETIMEDOUT"
syscall: "connect"
fatal: true
name: "ETIMEDOUTError"
pid: 6518
解决方式:
设置连接超时时间
修改文件下的:server\node_modules\mysql\lib\protocol\sequences\Sequence.js
修改文件中this._timeout = 100000;【由原来的参数调整为该确定值】
exports.mysql = { default: { database: null, connectionLimit: 50000, connectTimeout:50000, }, app: true, agent: false,
}