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

Need to turn on the multi_statement option for executing mysql sql commands in cluster_mgr #30

Open
jd-zhang opened this issue May 26, 2022 · 0 comments

Comments

@jd-zhang
Copy link
Contributor

Issue migrated from trac ticket # 747

component: cluster manager | priority: major

2022-05-26 19:22:46: [email protected] created the issue


error message:

2022-05-26 18:47:10.695415 <1290566> [error] [/home/kunlun/releasebuild/cluster_mgr/src/kl_mentain/shard.cc:503] mysql execute sql failed: execute query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SET GLOBAL group_replication_bootstrap_group=ON; START GROUP_REPLICATION; SET GL' at line 1, error number: 1064, sql: stop group_replication; SET GLOBAL group_replication_bootstrap_group=ON; START GROUP_REPLICATION; SET GLOBAL group_replication_bootstrap_group=OFF

The issue is that, in the oldway, cluster_mgr connects to mysql uses CLIENT_MULTI_STATEMENTS option, so that it can execute multiple commands in a mysql_query call. But now, all mysql operations are done using op_mysql util, and it does not turn on this option for connecting mysql, so the command of start group replication command fails.

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