Skip to content

xbvr database corrupt #1874

Answered by henrydias19
henrydias19 asked this question in Q&A
Nov 11, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Just to leave documented, with the help of ChatGPT I´ve found the solution. In this case the main.db were corrupted. So those were the steps:

  1. go to dabase directory: cd "/Users/(your user here)/Library/Application Support/xbvr"
  2. do a backup os the database: mv main.db main_backup.db
  3. Try repair using SQL Lite: sqlite3 main.db ".dump" | sqlite3 repaired_main.db
  4. Rename "repaired" to main.db and see if worked

In my case it not worked so y can try sqllite recovery mode (SQLite 3.31+)

  1. Check version: sqlite3 --version
  2. if equal or more than 3.31: sqlite3 main.db ".recover" | sqlite3 recovered_main.db
  3. Revame ".recover" to main.db

In my case the "recover" did the job, but you can try the externa…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@henrydias19
Comment options

Answer selected by henrydias19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant