Error: Cannot enqueue Query after fatal error in mysql node

前端 未结 3 1061
离开以前
离开以前 2021-01-15 16:45

I am using felixge/node-mysql. Also I am using express-myconnection which prevents mysql timeout and in turn prevents killing of node server. What I am doing is logging the

3条回答
  •  春和景丽
    2021-01-15 17:08

    For pool connection to work we need to comment out https://github.com/pwalczyszyn/express-myconnection/blob/master/lib/express-myconnection.js#L84 this line. Hope it helps anyone facing the same issue.

    Also we can use single connection option.

提交回复
热议问题