Node JS Mysql PROTOCOL ENQUEUE AFTER FATAL ERROR

前端 未结 2 933
耶瑟儿~
耶瑟儿~ 2020-12-16 12:55

What does the error mean?

{ [Error: Cannot enqueue Query after fatal error.] code: \'PROTOCOL_ENQUEUE_AFTER_FATAL_ERROR\', fatal: false }

T

相关标签:
2条回答
  • 2020-12-16 13:31

    I had similar issue connecting with MySQL. I solved this issue using connection pool. The concept is to get a connection from a connection pool only when required and release it after use. That way the connection will not be in unstable state. You can get implementation details here.

    0 讨论(0)
  • 2020-12-16 13:48

    I believe the issue is an express-sql-session. I'm experiencing the same issue right now. I think someone is on to something at this post: NodeJS running on MAC, and have an error occurred when deploying on centOS

    Check this out too: https://github.com/felixge/node-mysql/issues/1166

    0 讨论(0)
提交回复
热议问题