Can I connect a Cordova app directly to Mysql?

Asked

Viewed 432 times

0

I want to make a system with local mysql server on a desktop, but without using PHP or ASP. Then android would make the direct connection. Is it possible? Thank you.

  • No, it is not possible, you can use some local database, but not the mysql

  • Rafael then has no way to create an android app that works on internal network? So long that android is so used and nobody proposed to do it?

  • has how to connect by javascript using ajax, but not yet figured out how to do it.. thanks!

1 answer

1


For this to work you need a communication interface between your application and the database.

This is due to the fact that MYSQL does not solve the question of information transport, only its storage.

To run locally as you want, you will still need an API that will make the middle field between Android and Mysql.

An alternative, however, I have no knowledge to talk much, is you store the data in some service. Search for Dbaas. Firebase is an example, but will be remote and not local.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.