Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9181617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:21:34+00:00 2026-06-17T18:21:34+00:00

I want to know why SQLite create two file inside the path.and what is

  • 0

I want to know why SQLite create two file inside the path.and what is the diffrence these files.

I have a database name mydatabase.

when i see in given path there are two files.

data/data/pack name/databases/....

1- mydatabase

2- mydatabase-journal

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T18:21:35+00:00Added an answer on June 17, 2026 at 6:21 pm

    mydatabase is main database file, which contains everything about that database.

    mydatabase-journal is journal file. It does not exist by default, and only gets created by SQLite when necessary to keep intent log of what SQLite wants to do with database. Basically, this is intent of what should be done to main database file after transaction is properly finished. If you finish all transactions normally and disconnect from database gracefully, -journal file will be normally removed automatically.

    If disconnect was abrupt – like process killed or crashed, -journal file will remain and should NOT be deleted. When next time SQLite opens this database once again, it will notice presence of -journal file and will replay or rollback unfinished transactions, such that main database file is consistent and not corrupted.

    If you remove -journal file manually, recovery is not guaranteed and database may be completely corrupted – so, DO NOT remove -journal files.

    Probably easiest way to properly get rid of -journal files is to do this command:

    sqlite3 mysqlitedatabase.db VACUUM
    

    It will VACUUM (optimize) your database and should leave only main file as a result.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using sqlite3, I have two tables: products, orders. I want to know how many
Today I use SQLite and send a database-file with the project. However I want
I have an AsyncTask to do SQLite database migration in the background (create or
I have an elevated process and I want to make sure the SQLite files
I am new to SQLite database in Android and I want know where is
Does anybody know if there is a way to create an SQLite database based
I have a sqlite database that I did not create myself but from a
I have an android app it displays web view.I want know the app idle
I want to know the differences of File API in html5 and previous version.
I have created a data base (.sqlite) using SQLiteManager plugin for firefox,now I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.