title: Connect Android to local mysql database via API
body: <p>I am currently storing my Android data in <strong>Firebase</strong> 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.</p>
  
  <p><strong>My questions are:</strong></p>
  
  <p>1) What it is better in order to make these Android-Mysql connections secure, Apache or SSH?</p>
  
  <p>2) Are there any APIs in order not to have to configure these connections manually?</p>