The main step is to call “.dump” to read the raw DB data out. However, as desribed in detail in the below article, the “.recover” command is far superior as it can recover more data.
As well, if you compare the file size of the new DB to the old and it is substantially lower, you can use the “sqldiff.exe” tool (should also come from the above sqlite.org page) to see what’s missing.
The traditional way of repairing is omitting all the index tables. That’s the main reason why the re-imported db is smaller, initially.
But those indexes are being rebuilt automatically upon the first start of Plex server.
And the ‘lost_and_found’ table that may get created by .recover, is of no use to Plex. Someone with deep knowledge of databases and of Plex will have to go in and try to attach those data to the right tables manually again.
Nonetheless, maybe the .recover command is of use in some cases. I will forward your suggestion.
Thank you for reporting it!
.dump was not working for me.
.recover did the trick
New database is ~50% larger but no issues and passes integrity checks.
Anything I should be doing to optimise the database other than letting Plex run it’s overnight jobs?
My Plex database is working well. But the Check for Corruption process gives a long list of errors.
Trying to repair my database as explained in Repair a Corrupt Database page, unfortunately this process based on dump replace all french characters with “??”. But there is no more error.
And using the recover command, all french characters are kept but no error is corrected !
Have you an idea to keep the french characters within a repairing process ?
Great !.. But… I can’t set Notifications on my IPhone (iOS 13.4.1) :
I set Notifications Push on Plex Server. I restarted Plex Serveur and manually scanned to initialize.
On IPhone :
in Settings / Notifications, Plex application doesn’t appear
in Settings / Plex settings, there is nothing about notification,
in Plex App, Setting / Notifications, there is just a link to Settings / Plex settings, and nothing else to configure the type of notification.
I talked about the settings on my IPhone. I uninstalled and re-installed Plex app and now Notifications are Ok:
in Settings / Notifications, Plex application appears
Settings / Plex settings includes Notifications link
in Plex App, Setting / Notifications, firstly there is just a link to Settings / Plex settings, and after authorizing Notifications from Plex app, all options appear to configure the type of notification.