Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

如何设定mysql2的enableKeepAlive属性 #68

Open
jackyliu1023 opened this issue Jul 16, 2021 · 0 comments
Open

如何设定mysql2的enableKeepAlive属性 #68

jackyliu1023 opened this issue Jul 16, 2021 · 0 comments

Comments

@jackyliu1023
Copy link

  1. 技术问题
  • 当前使用的 Node.js 版本 (node -v):v12.9.1
  • 当前使用的 sequelize 版本 (package.json):5.21.6
  • 相关代码或报错信息

DB查询的时候的报错信息

Error: This socket has been ended by the other party

在mysql2的github上有类似的问题,说是需要把mysql2的enableKeepAlive设为true,所以想问一下用sequelize的时候怎么能修改enableKeepAlive这个属性

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant