0

I key all my database in PHPmyadmin and try to connect the database from outside (android apps), no idea how to setup and write db_config.php (server not local host)

Michał Turczyn
  • 32,028
  • 14
  • 47
  • 69
Su Hann
  • 11
  • 3
  • PHPMyAdmin is a database **client**, not a database. Do not confuse MySQL with PHPMyAdmin. – Quentin Jul 19 '18 at 10:24
  • ok , thanks , i am new in coding and keep tryin up But now i got a windows server 2012 , and i try to develop an android app , how do i let the app connect to the database(mySql which in windows server) , i can't find the solution on the internet . – Su Hann Jul 20 '18 at 07:05

1 Answers1

-1

Is your server accessible from the rest of the world ? If not, you'r not be abble to access your database from the net. Second, if your server is accessible, access from Apps (android, ios) come from the app itself (i.e with Angular, you have to call your PHP API as : http.get('https://myserver.srv/Account)

Your PHP script just have to connect locally on your databases, do the job and return an object to the client...

Jean-Luc Aubert
  • 620
  • 5
  • 19
  • i am new in coding and still learning on , thanks for the answer so now i got a windows server 2012 , and i try to develop an android app any suggestion or way to let app(from outside) connect to database? – Su Hann Jul 20 '18 at 07:14