Nodejs 连接 mysql时报错 Error: Cannot enqueue Query after fatal error

时间:2015-09-25 20:12:15   收藏:0   阅读:10885

解决办法,参考:https://github.com/chill117/express-mysql-session/issues/18

 

我们只需在实例化SessionStore的时候,配置useConnectionPooling: true。比如:

var sessionStore = new SessionStore({
    host: ‘localhost‘,
    port: 3306,
    user: ‘root‘,
    password: ‘root‘,
    database: ‘session‘,
    useConnectionPooling: true
});

 

原文:http://www.cnblogs.com/qianlegeqian/p/4839233.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!