My Mac lost power and now my Plex server won't run

yup the last few lines of the Plex Media Server.log show the db corruption:

Oct 16, 2022 22:07:56.253 [0x70000c77e000] DEBUG - Running server...
Oct 16, 2022 22:07:56.253 [0x70000c77e000] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.35.5, threadsafe=1
Oct 16, 2022 22:07:56.253 [0x70000ca0d000] DEBUG - HttpServer: Set up a thread pool with 2 threads.
Oct 16, 2022 22:07:56.253 [0x70000c77e000] ERROR - SQLITE3:(nil), 11, database corruption at line 68176 of [1b256d97b5]
Oct 16, 2022 22:07:56.253 [0x70000c77e000] ERROR - SQLITE3:(nil), 11, database disk image is malformed in "PRAGMA cache_size=2000"
Oct 16, 2022 22:07:56.254 [0x70000c77e000] ERROR - Database corruption: sqlite3_statement_backend::prepare: database disk image is malformed for SQL: PRAGMA cache_size=2000

of interest to nerds is how chuckpa spun up an unofficial shell script to repair and optimize a PMS database, if you don’t mind reading 112 posts or so to find it :100: