Database appears to be beyond repair

The option to configure the Plex data directory location from within the Plex interface was removed, for security purposes. It can still be done manually using the procedure here:

Check inside P:\Plex Media Server\ to see if there’s another Plex Media Server folder; if so, rename that one and leave the top-level one as-is.