0

i need to copy this database file and save it in someother location or i can take backup of the db file. is there a way to do this programmatically.

Thanks Satish

asked Jul 7, 2009 at 7:03

4 Answers 4

1

Unless you've jailbroken your iPhone, there's no way of accessing the sqlite3 database directly on the phone.

If you're talking about getting access to the database from your computer, you can do it by grabbing the database files out of the iPhone backup files. To do that, you'll need to grab a copy of Erica Sadun's mdhelper (binary file) command line utility, and run it from the PC you sync your laptop with like so:

mdhelper -files "AddressBook.sqlitedb" -extract -glob

This will create a "~/Desktop/Recovered iPhone Files" directory containing a file called AddressBook.sqlitedb, which you can access directly or query using your programming language of choice.

If you don't trust downloading and running binary files without knowing what they do, you can look at the source on Github and compile it yourself.

answered Jul 7, 2009 at 8:29
Sign up to request clarification or add additional context in comments.

Comments

1

the SQL database can be extracted from an iphone backup. I used this software to grab mine and the SMS database. If you have lots of images/videos in camera roll it can take a while to run.

http://www.supercrazyawesome.com/

answered Apr 7, 2011 at 21:40

1 Comment

I tried "iPhone Backup Extractor" from that URL, and it properly converts the iPhone / iPod Touch backups that are created by iTunes (cryptic bunch of UID filenames without suffixes) into properly named Mac OS X files, which make a lot more sense to analyze.
0

Yeah sorry abt that. ok thanks probably i will create a new database using AddressBook Apis

-Satish

answered Jul 8, 2009 at 6:51

Comments

0

You can also take a backup of your iphone and than use one of tools discribed here to identify the file you need.

answered Aug 5, 2012 at 0:21

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.