mysql - 如何在两个不同版本的主数据库之间进行同步(或复制)?

标签 mysql synchronization replication

我有一个mysql 5.5 innodb数据库应用程序。我想在 mysql 5.6 版本中安装相同的设置。我会保留两者。

第一个数据库中的每个更改都会在第二个数据库中发生,或者第二个数据库中的更改将在第一个数据库中发生更改。

请让我知道实现此目的的最简单方法。操作系统是Linux。

最佳答案

您可以replicate between 5.5 and 5.6 :

MySQL supports replication from one major version to the next higher major version. For example, you can replicate from a master running MySQL 4.1 to a slave running MySQL 5.0, from a master running MySQL 5.0 to a slave running MySQL 5.1, and so on.

您当然可以进行多主复制。

有一些注意事项:

The use of more than 2 MySQL Server versions is not supported in replication setups involving multiple masters, regardless of the number of master or slave MySQL servers.

我认为你很擅长 5.5 到 5.6 之间的下一个:

You cannot replicate from a newer master to an older slave using statement-based replication if the statements to be replicated use SQL features available on the master but not on the slave.

关于mysql - 如何在两个不同版本的主数据库之间进行同步(或复制)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23171054/

相关文章:

mysql - pt-table-sync,有关主机名的奇怪问题

mysql - 如何在 Mosaic 中创建与任何外部数据库的连接?

npm - 将客户端的文件与服务器同步 - Electron/node.js

MongoDB副本集: Disk size difference in Primary and Secondary Nodes

java - 同步适配器未运行

c++ - 宽松的原子计数器安全吗?

mysql - 是否可以在不同的主机上只复制一个具有不同 mysql 数据库的表?

mysql- "column cannot be null"

mysql - 发生系统错误 5。访问被拒绝。 (MySQL)

sql - 在 MySQL 中查找缺失值