Skip to content

Close and reinitialize Mysql handle before reconnection#528

Open
haoqixu wants to merge 1 commit into
akopytov:masterfrom
haoqixu:fix-mysql-reconnect
Open

Close and reinitialize Mysql handle before reconnection#528
haoqixu wants to merge 1 commit into
akopytov:masterfrom
haoqixu:fix-mysql-reconnect

Conversation

@haoqixu
Copy link
Copy Markdown

@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
Copy Markdown

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

@haoqixu
Copy link
Copy Markdown
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