I've a table named student
. I need to display attendance details of student by passing Student_ID
. Database uses normal MySQL
database on server-side to maintain the attendance register.
我有一张名为student的桌子。我需要通过Student_ID来显示学生的出勤详情。数据库使用服务器端的普通MySQL数据库来维护考勤寄存器。
How to connect that MySQL Server
to Android
Application ?
如何将MySQL服务器连接到Android应用程序?
1 个解决方案
#1
1
You can refer to this tutorial but you do need a web-server for it.
您可以参考本教程,但确实需要一个Web服务器。
Request mechanism
Android App ----> webserver ------> database (mysql)
请求机制Android App ----> webserver ------> database(mysql)
Respond mechanism
Android App <---- webserver <------ database (mysql)
响应机制Android App <---- webserver <------数据库(mysql)
Android App will use JSON or other to get the data and display it
Android App将使用JSON或其他来获取数据并显示它
#1
1
You can refer to this tutorial but you do need a web-server for it.
您可以参考本教程,但确实需要一个Web服务器。
Request mechanism
Android App ----> webserver ------> database (mysql)
请求机制Android App ----> webserver ------> database(mysql)
Respond mechanism
Android App <---- webserver <------ database (mysql)
响应机制Android App <---- webserver <------数据库(mysql)
Android App will use JSON or other to get the data and display it
Android App将使用JSON或其他来获取数据并显示它