Android failing to connect to MySQL database properly

后端 未结 1 619
遥遥无期
遥遥无期 2021-01-28 04:58

I\'m trying to get the basics of an Android app that sends and receives data from a MySQL server (my implementation will have nothing to do with this learning example). Here\'s

相关标签:
1条回答
  • 2021-01-28 05:17

    How are your running your database? Posting how the PHP connects may be more relevant. It's very possible that in the PHP you aren't connecting the request from the app to the actual database (either with an incorrect url or the name of the database itself). Check out this tutorial. I can confirm it works fine and it seems to accomplish the functionality you need as well. In that tutorial there are notes on where to change the code so that you can run it on your hosted server instead of localhost.

    0 讨论(0)
提交回复
热议问题