A simple use of google could have fetched you lots of references.
Anyways the basic idea is to use RESTful Webservices to fetch the data from server DB and return to the App which consumes it. Generally its done as JSON calls which needs to be parsed . Can be connected directly to the Database though but not a recommended option.
Example
connecting-mysql-database-json[
^]