在不同 MySQL 服务器之间复制表数据
想象一下,设置了 5 台 myqsl 服务器,其中 1 台具有某些表的正确数据,这些表一直在更新,我想将此数据复制到其他 mysql 服务器。
现在我确实记得曾经做过一个 MySQL 复制任务,通过同一个网站我写入主数据库并从从数据库读取,但在这种情况下,这可能吗?还有可行吗?
表格的一个例子是“翻译”。无论在一个数据库中输入什么新翻译,它们都会被复制到其他服务器
Imagine the setup of 5 myqsl servers and 1 of them has the correct data for some tables which are being updated all the time and I would like to copy over this data to the other mysql servers.
Now I do remember working on a MySQL Replication task once where through the same website I write to the Master DB and read from the Slave DB but in this case, is this possible to do? Also is it feasible to do?
An example of a table would be "Translations". Whatever new translations are entered in one DB, they are copied to the other servers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你已经回答了你自己的问题。
您需要使用主从服务器设置复制。
您只在主服务器中进行更新,并让从服务器以主服务器为食。
请参阅:
http://dev.mysql.com/doc/refman/5.0 /en/replication-howto.html
http://crazytoon.com/2008/01/29/mysql-how-do-you-set-up-masterslave-replication-in-mysql-centos-rhel-fedora/
如果你想要一本书,我推荐:高性能MySQL。
You have answered your own question.
You need to set up replication using master - slave servers.
Where you only do updates in the master and let the slaves feed on the master.
See:
http://dev.mysql.com/doc/refman/5.0/en/replication-howto.html
http://crazytoon.com/2008/01/29/mysql-how-do-you-set-up-masterslave-replication-in-mysql-centos-rhel-fedora/
If you want a book I'd recommend: High performance MySQL.