william007
william007

Reputation: 18525

Server requirement

We are interested in purchasing a server for storing a MySQL database that is used by an Android application. Just to understand, does the server only need to support MySQL, or are other requirements for a server for mobile use?

Upvotes: 0

Views: 126

Answers (2)

ixx
ixx

Reputation: 32271

To access the database "directly" (like it was local), this could help: MySql remote database manipulation in Android

But you might need some additional server functionality, at least in the future. Then you could use a server which also offers PHP. PHP + MySQL are usually offered together, it's very common/popular and it's cheap. Since you don't seem to have any special requirements for the server functionality, PHP is probably suitable.

Upvotes: 1

quietmint
quietmint

Reputation: 14153

Your Android application would probably not work directly with a remote MySQL database.

In general, you would use write a web service API to act as middleware, communicating with your Android application and the database. Your Android application would make HTTP requests to the web service, which would in turn perform CRUD on your database. In this case, your server would need both a web server (with support for Java or PHP or whatever language you choose to use for the web service) and a database server. See How to have Android app work with MySQL online database?

Upvotes: 2

Related Questions