set session sql_log_bin=0

引自http://blog.sina.com.cn/s/blog_759490280100s1m1.html
SET SESSION SQL_LOG_BIN=0 语句禁止将自己的语句记入二进制日志文件binlog中
2007-07-09 15:20
SET SESSION SQL_LOG_BIN=0 语句禁止将自己的语句写入mysql二进制日志文件binlog中
比NO_WRITE_TO_BINLOG好多了

set session sql_log_bin=0;
alter table …
set session sql_log_bin=1;


此特性用于在线0停机升级。

猜你喜欢

转载自skywhsq1987.iteye.com/blog/1646909