Hi,
Sqlite db is a file, just like mysql db. You can create the db first and import all your data from mysql to sqlite.. And put the sqlite db in your www folder or somewhere acessible by your app.
The create db in the doc is only for initialization..don't have to be that way..
And you can use your current db using webservice access by your mobile app without include your db which will take some space in user mobile limited space..
Hope help..
--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
You can't use the data directly from a mysql database, but you can insert the data into a sqlite database, and get a .db from the sqlite database and prepulate it instead inserting with javascript
you can read it here
I think you can use a .db, not a .sql with a plugin
http://gauravstomar.blogspot.com.es/2011/08/prepopulate-sqlite-in-phonegap.html
Or maybe there is some plugin to store the data in a native sqlite database.