If the image is malformed (corrupt), you’ll need to use one of the backup databases
- Move this ‘current’ one off to the side.
- Copy the most recent backup (look at the dates)
- Name it
com.plexapp.plugins.library.db - Be certain to make sure UID/GID is correct
Future reference, You can type:
"/usr/lib/plexmediaserver/Plex Media Server" --sqlite com.plexapp.plugins.library.db
and you’ll stay on the sqlite command line.