1

I want to know if a server can be a slave and master at the same time. Our problem is that we have lots of mobile units that need to be synced to the master but they only need 6 out of the 100s of tables on the master. All the extra tables serve no purpose on the slave except for delaying synchronization and adding data costs.

We want to create a smaller schema say mobileSchema that contains only 6 tables that are sync'd to their counterparts in the masterSchema. Is this possible? To have schemas sync internally or have some master/slave-master/slave configuration where the middle server is slave to the bigger server and master to the mobile units?

If the answer is no would anyone have any alternate solutions to propose. We're trying to avoid having to sync the different schemas/databases manually as that can get real ugly real fast.

Raza

4

2 回答 2

0

您可能想查看复制过滤器

您可以在主服务器上进行过滤,因此它只记录部分更改。

或者您可以对副本进行过滤,这样主服务器会记录所有更改,副本会下载所有日志,但副本只会应用更改的子集。如果您希望某些副本重播某些更改但其他副本重播不同的更改子集,那就太好了。

于 2014-04-01T03:35:06.923 回答
0

AFAIK 你不能在内部本地同步模式。

在您的情况下,您可以执行以下操作:

  1. 在您的主服务器上启用二进制日志记录。
  2. 创建另一个服务器作为代理并将其配置为从主服务器复制。
  3. 将“代理”配置为仅复制远程服务器所需的表 ( replicate-do-table )。
  4. 在“代理”上启用二进制日志记录和日志从属更新。
  5. 将您的远程单元配置为从代理复制。

您可能还需要为远程连接启用加密。

于 2014-04-01T07:54:02.180 回答