I am currently storing my Android data in Firebase and I want to change the structure in order to save the incoming data from the Android app in an SQL database in my local computer. I have read several solutions about how to expose a Mysql database publicly, but not much about security issues.
My questions are:
1) What it is better in order to make these Android-Mysql connections secure, Apache or SSH?
2) Are there any APIs in order not to have to configure these connections manually?