PhoneGap does not interface directly with mysql since mysql is a server-side database. You'll need to build a web service that sits in front of your mysql server, and then use XHR (AJAX) to communicate with your web service. Do not allow your webservice to be capable of generating arbitrary SQL, otherwise your database may as well be open to the entire world. Also, USE HTTPS, and avoid self-signed certificates.
If you need local database capability (say, for syncing), use a SQLite plugin. If you already understand SQL syntax, using SQLite shouldn't be too difficult.
THX for your reply,
Yes i need a local database. Have you any suggestion for a good plugin? And for a manual Just to start? THX a lot :-)
I've used GitHub - litehelpers/Cordova-sqlite-storage: A Cordova/PhoneGap plugin to open and use sqlite databases on Android, iOS … with good results. There are some variations on that plugin depending on the features you need. The docs also describe use, so be sure to read them through.
thanks a lot i will give a look