You could process the db files on a different system, then move them back to your “real” server. The OS does not have to be the same. For example, you could run PMS on Linux and use PMS on Windows to de-bloat the db file.
PMS1 = current server; PMS2 = new/different server for processing db files
-
Install & claim PMS 1.41.8.9834 on a different system, PMS2. Do not create any libraries. In Settings → Libraries, disable
Empty trash automatically after every scan. -
Stop PMS on both systems.
-
On PMS2, delete the existing (empty) db files.
-
Copy
com.plexapp.plugins.library.dbandcom.plexapp.plugins.library.blobs.dbfrom PMS1 to PMS2. -
Start PMS2.
-
Using WebTools-NG or POST/curl listed by @drzoidberg33 (two posts above), initiate a Database Optimization on PMS2.
-
Hum the Jeopardy theme song while you wait for the process to complete.
-
When finished, stop PMS2 (and PMS1 if still running).
-
On PMS1, rename
com.plexapp.plugins.library.dbandcom.plexapp.plugins.library.blobs.dbto .bak/.save (or just delete them if you’ve a copy elsewhere).
On PMS1, delete any -shm and -wal files (they normally go away when PMS is stopped). -
Copy
com.plexapp.plugins.library.dbandcom.plexapp.plugins.library.blobs.dbfrom PMS2 to PMS1. -
Start PMS1.