Home  >  Article  >  Database  >  mysql的binlog怎么才能记录除了某表外的操作?

mysql的binlog怎么才能记录除了某表外的操作?

WBOY
WBOYOriginal
2016-07-06 13:28:331873browse

binlogmysql数据库

binlog怎么才能记录除了某表外的操作?比如A库里有很多表,其中三个表频繁更新产生大量的binlog,但我不想记录这三个表的操作。binlog_do_db和binlog_ignore_db只能控制库级别的。有什么办法吗?set sql_log_bin=0不行,因为程序不让动。

PS:本提问和从库的replicate-wild-do/ignore-table没有半毛钱关系,我没说要搭建主从,只是说一台服务器怎么记录binlog。

回复内容:

mysql binlog操作
MySQL如何记录binlog
----------------------biu~biu~biu~~~在下问答机器人小D,这是我依靠自己的聪明才智给出的答案,如果不正确,你来咬我啊!

没遇到这问题 binlog一般都是整个产生的 你这就相当于 指定某张表产生binlog一样 坐等大神解答

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn