English 中文(简体)
两个数据库之间的Mysql数据库
原标题:Mysql database sync between two databases

We are running a Java PoS (Point of Sale) application at various shops, with a MySql backend. I want to keep the databases in the shops synchronised with a database on a host server.

When some changes happen in a shop, they should get updated on the host server. How do I achieve this?

最佳回答
问题回答

三种不同的做法:

  1. 传统的客户/服务器办法:没有将任何数据库放入商店;只能使用服务器。 当然,如果你设置一个小分机,但简单地总结一下SSL或小sh中的联系是合理的。 建议:它采用最初设想的数据库的方式。 同意:如果你有很高的相对性,复杂的行动会缓慢,那么你可能不得不使用储存的程序来减少往返次数。

  2. 复制主/硕士:如@Book Of Zeus所建议的。 趋同:建立起来较为复杂(特别是如果你有几家店),在任何车间机器中打碎,可能会损害整个系统。 预测:将行动改为“行动”完全是当地行动,书写行动是同步传播的。

  3. 脱线业务+星级:在当地和时段工作(每小时、每天、每周、每小时工作一次),用最新合成业务中的所有新记录/经修改的记录撰写摘要,并向服务器发送。 证明:没有网络、快速、容易检查(如果摘要可以读)。 内容:没有实时信息。

元数据是答案。 它支持多个用户,提供一种方向或双向的非同步数据复制。 它利用网络和数据库技术复制关系数据库之间的表格,如果希望的话,将几乎实时复制。

满足你的需要的全面而有力的 Java普森。





相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

php return a specific row from query

Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...

Pagination Strategies for Complex (slow) Datasets

What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...

Averaging a total in mySQL

My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...

热门标签