0

I want to write web service which gets sqlite database from client device (i-phone app) and sync with server mysql DB. both sqlite and mysql has same DB table structure.

Should i accept json string from client for each table and parse it on the server end and get store the data in mysql DB. is it the right solution or is there any other solution for syncing both client and server DB ?

1 Answer 1

0

SQLite has an option to dump the DB into a text file containing SQL commands. See Exporting from SQLite to SQL Server and http://sqlite.org/sqlite.html.

You can dump the SQLite into a file, have your program tweak the SQL a bit (remove table creation, triggers and other irrelevant stuff) and run it on the MySQL DB.

Sign up to request clarification or add additional context in comments.

2 Comments

Do you have a clue how to write web service for it in PHP ?
I'm not familiar with PHP, but working with SQLite looks the same - php.net/manual/en/book.sqlite3.php

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.