Music Library Doctor
Why is

Why does VirtualDJ say my database is corrupt?

Almost always a partial write to database.xml — VirtualDJ was closed mid-save or the disk hiccupped. MLD diagnoses and restores from backups.

The problem

VirtualDJ launches and shows "database corrupt" or your library appears empty. The usual cause is a partial write to database.xml — VirtualDJ was force-quit during a save, the disk got disconnected mid-write, or an antivirus tool quarantined the file. Unlike Rekordbox's encrypted SQLite, VirtualDJ's database is plain XML, so partial writes leave malformed XML that the parser refuses.

How Music Library Doctor does it

  1. 1 Don't keep relaunching VirtualDJ — repeated bad opens can make things worse. Close the app.
  2. 2 Install Music Library Doctor. MLD detects VirtualDJ's install mode (portable or shared) and locates database.xml.
  3. 3 MLD parses database.xml in strict mode and identifies where the malformation is — usually a truncated tag near the end of the file.
  4. 4 If the corruption is local (one truncated element), MLD attempts an in-place repair: validates every other entry, removes the malformed tail, writes a clean database.xml.
  5. 5 If the damage is too severe, MLD lists its timestamped backups (taken automatically before every operation). One-click restore.

Supported today

Rekordbox · Serato DJ · VirtualDJ (incl. Favorite Folders) on Windows 10+ and macOS (Apple Silicon + Intel).

Why native integration matters

Plain-XML databases like VirtualDJ's are easier to repair than encrypted ones — once you understand the schema. MLD knows VirtualDJ's exact format (regular playlists, Favorite Folders, M3U references, history) and can salvage the valid parts even when the file as a whole is malformed. The automatic timestamped backups (taken before every MLD operation) are the safety net if in-place repair isn't enough.

Frequently asked questions

What causes VirtualDJ database corruption?

VirtualDJ closed unexpectedly during a save, disk filled up mid-write, external drive disconnect while VirtualDJ was writing, or antivirus tools quarantining the file mid-transaction.

Will my Favorite Folders survive the repair?

Yes. Favorite Folders metadata is part of the database.xml schema MLD reads and writes. If the Favorite Folders section is intact, it survives in-place repair; if a backup restore is needed, the most recent backup has them too.

Are my M3U playlists affected?

Standalone M3U files are separate from database.xml — they're plain text playlist files. Database corruption doesn't affect them. MLD can re-import them after the repair if needed.

Should I just delete database.xml and start fresh?

Only as a last resort. Starting fresh means re-importing every track and losing every cue point, beatgrid, and Favorite Folder you've ever set.

Does this work with portable VirtualDJ installs?

Yes. MLD detects portable mode and targets the database.xml inside the portable install folder, not the system VirtualDJ folder.

Get your library in shape in minutes

Free tier covers detection and viewing. Lifetime access is $49 — $19 for the first 100 DJs.

Related guides