解决办法,参考: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
});

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2022-01-20
  • 2021-05-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-26
  • 2021-06-20
  • 2021-08-15
  • 2022-12-23
  • 2021-09-09
  • 2022-12-23
相关资源
相似解决方案