user1663513
user1663513

Reputation: 113

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.

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?

Thankz

Upvotes: 5

Views: 1508

Answers (1)

Aswin Kumar
Aswin Kumar

Reputation: 5278

If its a one-time upload, use the 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. Focus to use as less data and battery as possible.

Upvotes: 1

Related Questions