Is it possible to act as a MySQL server in a Java or Android application, such that applications like HeidiSQL can connect to it?
What I want to do is to write an application for Android which behaves as a MySQL server for an arbitrary database on that device. Since there are many MySQL clients that can connect to MySQL servers, it would be ideal if I could mimic such a server.
As it currently stands, I have three options:
- Use some sort of MySQL server library (if that exists);
- Write the server myself, including implementing the (trivial/needed parts of the) protocol (is this feasible?);
- Drop the MySQL server approach altogether and write a specific client/server myself.
In the end, the server (Android application) should be able to process and respond to simple queries a client sends to it.
Which options are feasible, and best suitable?