Synology FAQ - Questions, Answers, and How-To's

FAQ 30 - DSM 7 - Database Repair using a Backup copy

The database can get corrupted for a variety of reasons. The most common are abrupt stopping of PMS (power fail, restart, etc)

When this happens, if there are database backups, we can recover by shuffling around the files using FileStation.

  1. Stop PMS if running

  2. Open FileStation

  3. Navigate to PlexMediaServer / AppData / Plex Media Server / Plug-in Support / Databases.

  4. Rename com.plexapp.plugins.library.db to com.plexapp.plugins.library.db--BAD

  5. Select the most appropriate backup copy of the database and copy it to the “Plug-in Support” folder.


  1. Navigate up to “Plug-in Support” and rename to com.plexapp.plug-ins.library.db

  2. MOVE com.plexapp.plugins.library.db back into the Databases folder.

  3. Cleanup
    – REMOVE com.plexapp.plugins.library.db-wal if it exists
    – REMOVE com.plexapp.plugins.library.db-shm if it exists

  4. Confirm everything back to normal.

  5. Start Plex

  6. Give EXTRA TIME for PMS to update the backup database (schema) if needed

  7. When the CPU is normal again (might take 2-3-4 minutes)
    – Scan files for each section
    – Empty trash
    – Clean bundles
    – Optimize Database

Go to Index