How to sync two MySQL tables?

萝らか妹 提交于 2019-11-30 06:58:26
Bill Karwin

pt-table-sync can do this: http://www.percona.com/doc/percona-toolkit/2.1/pt-table-sync.html

See also other SO questions and answers mentioning pt-table-sync.

Arguably the"best" way is to use MySQL replication, documented here: http://dev.mysql.com/doc/refman/5.5/en/replication.html

I am solving similar problem of syncing two tables constantly.

Among all the scripts (of which most are old) I've found this actively developed app (looks promising)

https://github.com/mrjgreen/db-sync

I'll try it and maybe later I'll write an example.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!