完美

[学习|工作|博客|交流平台|完美起航]
 问题描述
时间:[ 2017-11-09 14:20:36 ]作者:[ SmartZ ]

nodejs使用mysql库连接mysql一段时间后出现如下错误。

{ Error: Cannot enqueue Query after fatal error.
    at Protocol._validateEnqueue (/home/dev/waitting/waitting/node_modules/mysql/lib/protocol/Protocol.js:201:16)
    at Protocol._enqueue (/home/dev/waitting/waitting/node_modules/mysql/lib/protocol/Protocol.js:139:13)
    at Connection.query (/home/dev/waitting/waitting/node_modules/mysql/lib/Connection.js:208:25)
    at Connection.beginTransaction (/home/dev/waitting/waitting/node_modules/mysql/lib/Connection.js:165:15)
    at Promise (/home/dev/waitting/waitting/library/zyw/mysql/transaction.js:26:24)
    at Transaction.beginTransaction (/home/dev/waitting/waitting/library/zyw/mysql/transaction.js:25:16)
    at Waitting.create (/home/dev/waitting/waitting/app/model/business/manager/waitting.js:134:22)
    at process._tickDomainCallback (internal/process/next_tick.js:135:7) code: 'PROTOCOL_ENQUEUE_AFTER_FATAL_ERROR', fatal: false }

请问这是什么情况?

 相关评论

zy112233

普通用户

积分:100

同问

2017-11-11 20:19:38回复