在Web和桌面应用程序中同步MYSQL数据库 [英] Synchronising MYSQL Database in web and desktop application

查看:155
本文介绍了在Web和桌面应用程序中同步MYSQL数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个Web应用程序(使用PHP),该应用程序利用位于Web服务器上的特定数据库.我将有另一个桌面应用程序(使用C#和WPF),它将使用本地数据库.两种数据库在启动时都具有相同的结构和数据.然后,当客户向Web应用程序添加数据以及工作人员向桌面应用程序添加数据时,数据库可能会发生变化.不久之后,我必须使用c#在桌面应用程序中同步两个数据库.

这样做最简单的方法是什么?
可以有任何开源示例/入门包吗?
谢谢.

I''m attempting to create a web application(Using PHP) that utilizes a particular database located on web server. I''ll have another desktop application(Using C# and WPF) which will make use of a local database. Both databases have same structure and data at launch. Then databases can change when customers add data to web application as well as an worker adds data towards the desktop application. Before long I must sync both databases in desktop application using c#.

What''s going to be the easy way do that?
Can there be any opensource example/ starter package to begin with?
Thanks.

推荐答案

从这里开始:
http://www.howtoforge.com/mysql_database_replication [ http://dev.mysql.com/doc/refman/5.0/en/replication.html [ ^ ]

http://dev.mysql.com/doc/refman/5.0/en/replication- howto.html [^ ]
Start here :
http://www.howtoforge.com/mysql_database_replication[^]

http://dev.mysql.com/doc/refman/5.0/en/replication.html[^]

http://dev.mysql.com/doc/refman/5.0/en/replication-howto.html[^]




阅读下面的讨论,您可能会在这里得到答案,

http://forums.mysql.com/read.php?27,152945,153154# msg-153154 [ ^ ]

祝你好运.
Hi,

Read below discussion, You may got your answer there,

http://forums.mysql.com/read.php?27,152945,153154#msg-153154[^]

Best of luck.


这篇关于在Web和桌面应用程序中同步MYSQL数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆