Nodejs 连接 mysql时报错 Error: Cannot enqueue Query after fatal error
解决办法,参考: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 });
hi,我的新博客地址:ysha.me !!