dongmubei7950 2010-11-23 18:13
浏览 137
已采纳

将数据插入远程mysql数据库

We have an android app that currently sends data to a php script which writes to a mysql DB on the same server. We are thinking of using a scalable remote DB e.g. amazon RDS.

The question is how does our android app write to these remote DBs? Do they have some kind of rest API, or do we have to send the data to the same php script on our server but use that to post to the remote mysql DB?

Thanks

  • 写回答

2条回答 默认 最新

  • drlma06060 2010-11-23 18:17
    关注

    It depends entirely on the remote database. Sift through their developer docs to find out what you need to do to work with them.

    You can most likely do either option you mentioned (interact directly through your Android app or use a PHP script on your server as a man-in-the-middle).

    Personally, I would go for a man-in-the-middle PHP script on your server that acts as an API, because it allows you to change remote DBs without changing/repackaging your Android app.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 一道python难题
  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
  • ¥15 教务系统账号被盗号如何追溯设备
  • ¥20 delta降尺度方法,未来数据怎么降尺度