Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

File extension .DB - What kind of database is it exactly?

I have a database file with .DB file extension. I have been googling and it looks like SQLite. I tried to connect to it using SQLite and SQLite3 drivers and I am getting an error "File is encrypted or not a database".

So I dont know if file is encrypted or it is not an SQLite database. Are there any other options what should the .DB extension should be? How do I find out that file is encrypted?

I tried to open it in the text editor and it is mostly a mess of charaters and some times there are words visible. I have uploaded the file here: http://cl.ly/3k0E01373r3v182a3p1o for the closer look.

Thank you for your hints and ideas what to do and how to work with this file.

like image 945
Macejkou Avatar asked Apr 21 '11 19:04

Macejkou


People also ask

What is .DB database file?

A database file is one of the several types of the system object type *FILE. A database file contains descriptions of how input data is to be presented to a program from internal storage and how output data is to be presented to internal storage from a program.

What database uses .DB extension?

DB files are commonly saved in a SQLite database format, but they are also commonly locked or encrypted, so you cannot access or edit their data.

Can I open a .DB file in SQL?

Generally, mobile devices store . db files in SQL database format. These are not meant to be opened and tinkered with, as they contain very important data. SQLite can be used to open these files.

What is the difference between .DB file and .SQL file?

There is no difference, as long as the creator did not put other bytes in it. If you want to see if it is a SQLite 3 database, open the file in a hexeditor and look for the byte above or simply open it with the SQLite driver. Or head the file.


2 Answers

Marco Pontello's TrID is a great way to determine the type of any file.

TrID is simple to use. Just run TrID and point it to the file to be analyzed. The file will be read and compared with the definitions in the database. Results are presented in order of highest probability.

Just download the executable and the latest definitions file into the same directory and then run TrID:

trid.exe "path/to/file.xyz"

It will output a list of possible file types for the file with a confidence rating. Here's a screenshot of using TrID to analyze a SQLite database file:

trid results

There's also a GUI version called TrIDNet:

tridnet results

like image 61
Ronnie Overby Avatar answered Oct 20 '22 01:10

Ronnie Overby


If you're on a Unix-like platform (Mac OS X, Linux, etc), you could try running file myfile.db to see if that can figure out what type of file it is. The file utility will inspect the beginning of the file, looking for any clues like magic numbers, headers, and so on to determine the type of the file.

like image 32
Brian Campbell Avatar answered Oct 20 '22 01:10

Brian Campbell