设为首页 加入收藏

TOP

MySQL参数binlog-do-db对binlogs写入的影响(三)
2015-07-24 10:42:56 来源: 作者: 【 】 浏览:3
Tags:MySQL 参数 binlog-do-db binlogs 写入 影响
os 700 Query thread_id=14 exec_time=0 error_code=0 SET TIMESTAMP=1414258430/*!*/; insert into bosco2.bosco2_tb01(id) values(1) /*!*/; # at 700 #141026 1:33:50 server id 1303308 end_log_pos 727 Xid = 189 COMMIT/*!*/; # at 727 #141026 1:33:58 server id 1303308 end_log_pos 770 Rotate to mysql-bin.000009 pos: 4 DELIMITER ; # End of log file ROLLBACK /* added by mysqlbinlog */; /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; 可见,指定了binlog-do-db=bosco1,事务隔离级别RR + binlog_format=statement,在使用指定的database(bosco1数据库)下操作所有数据库下的表中的所有操作DML都会记录到binlogs中,即使是操作非binlog-do-db=bosco1指定数据库下的表;而且DDL也会被记录。另外在binlog_format=mixed下也是一样的结果。

有兴趣的朋友,也可以测试下binlog-ignore-db,相信也会大吃一惊的。

blog地址:http://blog.csdn.net/hw_libo/article/details/40476577

-- Bosco QQ:375612082

---- END ----
-------------------------------------------------------------------------------------------------------
版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!

首页 上一页 1 2 3 下一页 尾页 3/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇【Mysql】Mysql数据库处理Servlet.. 下一篇mysql子查询慢的问题

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·HyperText Transfer (2025-12-26 07:20:48)
·半小时搞懂 HTTP、HT (2025-12-26 07:20:42)
·CPython是什么?PyPy (2025-12-26 06:50:09)
·Python|如何安装seab (2025-12-26 06:50:06)
·python要学习数据分 (2025-12-26 06:50:03)