千家信息网

通过replicate-wild-do-table解决replicate-do-db的一些问题

发表于:2026-11-03 作者:千家信息网编辑
千家信息网最后更新 2026年11月03日,--replicate-wild-do-table=db_name.tbl_nameCommand-Line Format--replicate-wild-do-table=namePermitted
千家信息网最后更新 2026年11月03日通过replicate-wild-do-table解决replicate-do-db的一些问题
  • --replicate-wild-do-table=db_name.tbl_name

    Command-Line Format--replicate-wild-do-table=name
    Permitted ValuesTypestring

    Creates a replication filter by telling the slave thread to restrict replication to statements where any of the updated tables match the specified database and table name patterns. Patterns can contain the "%" and "_" wildcard characters, which have the same meaning as for the LIKE pattern-matching operator. To specify more than one table, use this option multiple times, once for each table. This works for cross-database updates.

    通过告诉从线程创建一个复制筛选器来约束任何与指定的数据库和表名称相匹配的更新表相关的语句。模式可以包含"%"和"_"通配符,它与模式匹配算法类似。要指定多个表,使用此选项多次,每个表一次。这是跨数据库更新的工作。

    跨数据库这一点是重点,不像replicate-do-db那样,其他的库操作,就不会同步设定的库。这个参数,只要涉及到的该表,就会同步。


  • --replicate-wild-ignore-table=db_name.tbl_name

    Command-Line Format--replicate-wild-ignore-table=name
    Permitted ValuesTypestring

    Creates a replication filter which keeps the slave thread from replicating a statement in which any table matches the given wildcard pattern. To specify more than one table to ignore, use this option multiple times, once for each table. This works for cross-database updates.

数据 数据库 模式 更新 参数 名称 多个 算法 线程 语句 这是 通配符 重点 筛选器 同步 工作 问题 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 百单网互联网科技有限公司 广州大一互联网络科技有限公司 中关村互联网 科技集团 科技互联网企业 万易互联网科技 远拓互联网科技 唐信互联网科技 大连 互联网金融 科技创新 科技与互联网的利与弊 南平创想时代互联网科技有限公司 特约风豹互联网科技为什么扣费 互联网企业科技类企业如何做账 智帮互联网科技公司最近动向 雨阳互联网卡科技有限公司 有人说阿里系是互联网科技企业 卡尔迅互联网科技有限公司 陕西九四连强互联网科技有限公司 互联网科技大会大佬 保山浩联互联网科技有限公司 互联网高科技绘画 有马互联网科技 汇久创客互联网科技 移动互联网科技公司 链环科技传统企业怎么转型互联网 工业互联网等科技实现智能化赋能 国大互联网教育科技有限公司薪资 互联网科技平台产品运营 中国科技和美国互联网 北京互联网科技类企业分布 前海云享互联网科技
0