简体   繁体   English

使用mysql同步数据库sqlite

[英]Sync databases sqlite with mysql

I have a database in android app and i like to sync this sqlite db with mysql master in internet. 我在Android应用程序中有一个数据库,我喜欢在互联网上将这个sqlite数据库与mysql master同步。

What is the best way to resolve this problem? 解决此问题的最佳方法是什么?

-dump in a file, upload file using web services -dump in a file, upload with ftp and then cron - any others? -dump在一个文件中,使用web服务上传文件-dump在一个文件中,用ftp上传然后用cron上传 - 还有其他吗?

Thankz Thankz

If its a one-time upload, use the dump-to-file aproach. 如果是一次性上传,请使用dump-to-file aproach。 Send it to server and parse it there. 将其发送到服务器并在那里解析它。

If you have to keep syncing, then use a web-service api, and that too use as sparsely as possible - collect a lot of data and then sync, or on an as-needed basis. 如果你必须保持同步,那么使用web服务API,它也尽可能稀疏地使用 - 收集大量数据然后同步,或根据需要。 Focus to use as less data and battery as possible. 专注于使用尽可能少的数据和电池。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM