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

Close and reinitialize Mysql handle before reconnection #528

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

haoqixu
Copy link

@haoqixu haoqixu commented Mar 27, 2024

We can not reuse a MYSQL handle without re-initialization after mysql_close(). We should close and reinitialize the handle before reconnection.

Fix #527

@charlesfg
Copy link

@haoqixu, is this problem related to reconnecting after any failure between the sysbench client and MySQL?

@haoqixu
Copy link
Author

haoqixu commented Jul 17, 2024

@charlesfg yes. sysbench fails to reconnect to the mysql/mariadb after failure. more details can be found in #527

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

Successfully merging this pull request may close these issues.

Fail to reconnect to mysql/mariadb when running with mariadb-libs
2 participants