How to Synchronise between Server Database (MYSQL) and Local database (SQLite)

HI
I’m working on app which is online and offline. so when user play offline,all data save in local database (SQLlite ) that i have done. but when my app connect to internet i want synch all data to server (MYSQL).
anyone have any idea,demo project or this kind of example? please help me…

Thank you

Please help me