D
D
Dmitry Shelygin2016-10-16 13:47:59
MySQL
Dmitry Shelygin, 2016-10-16 13:47:59

How to transfer an entire database over TCP?

There is a server written in Java and working with MySQL. And there is an android application that has a SQLite database.
How to transfer the entire database (3 tables, 4 fields each) from the server to androyd via tcp connection?
And how, having received it, to bring it into the SQLite database?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan, 2016-10-16
@LiguidCool

Well so you do 2 connections to a DB - internal and external.
Next, drag the data with a select and insert / update the local one.
Close the external connection.
Of course, in reality it is somewhat more complicated, but you understand the logic.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question