We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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关闭autocommit时,无法执行成功。备份服务器关闭autocommit时无法备份成功。
inception 在备份状态挂起。我猜是没有commit, 不产生binlog, 备份功能在等待dump binlog 。
The text was updated successfully, but these errors were encountered:
我猜不会有人回复。。。。
Sorry, something went wrong.
我回答了, 但不能解决你的问题, 国内开源项目, 不好做啊! 观念和生态问题。中兴事件能不能引起大家的警醒呢?!
我没有测试是否是因为autocommit的原因,如果确定是这样的话,可以按如下方式解决: 可以修改源码sql/sql_parse.cc文件,在函数mysql_check_binlog_format最后return之前添加
sprintf(set_format,"set session autocommit=on;"); if (mysql_real_query(mysql, set_format, strlen(set_format))) { my_message(mysql_errno(mysql), mysql_error(mysql), MYF(0)); DBUG_RETURN(ER_NO); } DBUG_RETURN(false);
按上述方法可以添加各种操作前的set项设定,须注意set范围为session。
好的,有空试一下,谢谢
No branches or pull requests
当目标mysql关闭autocommit时,无法执行成功。备份服务器关闭autocommit时无法备份成功。
inception 在备份状态挂起。我猜是没有commit, 不产生binlog, 备份功能在等待dump binlog 。
The text was updated successfully, but these errors were encountered: