Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

mysql 重连处理 | Zen's Blog #5

Open
xazeng opened this issue Aug 5, 2019 · 0 comments
Open

mysql 重连处理 | Zen's Blog #5

xazeng opened this issue Aug 5, 2019 · 0 comments

Comments

@xazeng
Copy link
Owner

xazeng commented Aug 5, 2019

https://code.xazeng.com/blog/2019/08/01/mysql/reconnect/

mysql 的连接有的时候会发生被动断开的情况: mysql 客户端与 mysql 服务器之间的网络出现问题 mysql 服务器重启 mysql 连接长时间没有操作,被 mysql 服务器断开。 在服务端程序中,我们希望 mysql 的连接能尽量保持不断开,如果断开就需要重连。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant