Error 500 after Ubuntu upgrade

On upgrading my os to Ubuntu 22.04 I get a 500 error when opening invoiceninja. Please advise


Can you advise PHP version and also any errors in storage/logs/laravel.log

PHP version: upgrading from 8.0 to 8.1
The logs say “db fails”


Most likely php8.1-mysql is not installed.

That was it, thanks.
Weird that I didn’t come across that in all my googling, so hopefully this thread can serve as a reference for the future.