简体   繁体   中英

how to connect android with phpmyadmin

How to connect android with phpmyadmin? I used Android Studio and WAMP server, I searched relative information, but I could not know how to pick out which one is useful for me. I could insert data into mysql with php.file, and query the data from mysql. But I don't know how to connect Android with Phpmyadmin, how to upload/ download from mysql.

  1. Connect Android phone and Computer to the same network
  2. In mobile browser, type the IP address of the computer with port number
  3. Enter phpMyAdmin credentials and access WAMP projects

Please change http://localhost/ .... with http://10.0.2.2/ .... in your urls configurations

EDIT : if you use a real Android device, search the IP adress of your computer in your router main page configuration and replace localhost by this ip adress, it will work

phpMyAdmin is not a database, it's a web-based application from which you can perform administrative tasks on a MySQL (or MariaDB) database.

If you're really trying to connect to phpMyAdmin, just enter the URL in to the web browser. https://example.com/phpmyadmin or https://192.0.2.52/phpmyadmin or something similar.

However, if you're trying to get an application on your Andriod device to talk to a MySQL database hosted somewhere else, you're not going to want to connect directly to it, you'll want an API running on the database machine to authenticate, handle incoming requests, and return appropriate responses. You can code that in PHP if you want, or whatever programming language suits you, then you access that URL from your Android app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM