THE FILE FIELD GUIDE
.db

Data

Disk & Database

DB is a broad database suffix. Some files are SQLite, but not every DB is. Identify the producer and avoid directly modifying an active application database.

What it is used for
Application data and indexes
What the file contains
Producer-dependent
All sections, questions and sources

Content reviewed: · Editor:Kai

Opening steps

Choose your environment or purpose to see its steps.

Identify application and format

The suffix does not prove SQLite.

  1. Inspect producer, location and companion files.
  2. Identify engine and backup workflow from its documentation.
  3. Create a consistent application backup for inspection.
Inspect a SQLite database

Use a copy identified as SQLite.

  1. Use a compatible viewer or read-only sqlite3 connection.
  2. Inspect tables and schema.
  3. Inspect sample rows and run an appropriate integrity check on the copy.
Export tables for sharing

CSV does not replace a complete database.

  1. Select tables/columns and review private fields.
  2. Export separately using supported tools.
  3. Compare counts, text, nulls, dates and identifiers.

Menu labels and support vary by app, OS and version. Preserve the original before making changes.

Troubleshooting by symptom

  • Wrong format: identify the system from origin/header information, not the suffix.
  • Locked database: check active use rather than deleting locks or companion files.
  • Missing recent data: journals/WAL may matter; use a supported backup workflow.
  • CSV zeros disappear: inspect identifier type and spreadsheet import.
  • Table missing: inspect selected DB, schema and export scope.
  • Encrypted DB rejected: use the authorized source application/authentication.

Identified DB → CSV / backup

  1. Choose needed tables through the producer’s exporter or matching database tool.
  2. Verify counts, types, nulls, dates and related tables; preserve originals/backups.
  3. Verify exported counts/samples and retain a database copy for restoration.

CSV usually omits indexes, constraints, interfaces and application behavior.

Copying versus consistent backup

Prefer supported backups over copying an active database file; SQLite WAL may be part of its persistent state.

Example: investigate source backup consistency when recent updates are absent.

Source for these steps:SQLite Project · Database File Format / SQLite Project · Command Line Shell For SQLite / SQLite Project · SQLite Backup API / SQLite Project · Write-Ahead Logging

Preserve data and database structure

Keep the original/schema when indexes, relationships, views or application behavior must be restored.

Source for these steps:SQLite Project · Database File Format / SQLite Project · Command Line Shell For SQLite / SQLite Project · SQLite Backup API / SQLite Project · Write-Ahead Logging

Related-format differences

Related-format differences
Format / methodRoleWhat to verify
DBVarious enginesProducer/encryption
SQLite backupConsistent databaseSupported backup
CSVTable exportTypes/nulls/relations

Handling and security

Databases may contain credentials/private data; avoid online conversion or replacing active data with manually altered copies.

Questions and answers

Is every DB SQLite?

No; identify its producer and format.

Is copying one file sufficient?

Companion files/active transactions may matter; use supported backups.

Does CSV restore the application?

It is not a full backup of application logic/structure.

May I delete the matching WAL file?

It may contain committed changes; use the application’s shutdown/backup workflow.

Does read-only mode open every DB?

Encryption, proprietary engines and versions still matter; identify the source first.

Format facts: name, steward and MIME type
Formal name
Producer-specific database file
Steward / specification
Producing application / database system
MIME type
Depends on the producer or server; an extension alone does not establish a MIME type.

Primary and official sources

  • Project documentationDatabase File Format

    Documents SQLite headers and companion journals.

    SQLite Project · Link checked:
  • Project documentationCommand Line Shell For SQLite

    Reference for database, SQL and CSV workflows.

    SQLite Project · Link checked:
  • Official documentationSQLite Backup API

    Consistent backups of an active database.

    SQLite Project · Link checked:
  • Official documentationWrite-Ahead Logging

    Database/WAL relationship and read-only conditions.

    SQLite Project · Link checked: