Just logged into analytics and was told to upgrade, now it's not working

free/libre analytics platform
Update error
Critical Error during the update process:
SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘piwikanalytics.piwik_plugin_setting’ doesn’t exist

The above is the core error message. It should help explain the cause, but if you require further help please:

Check the Piwik FAQ which explains most common errors during update.
Ask your system administrator - they may be able to help you with the error which is most likely related to your server or MySQL setup.

I’ve had the exact same error - running upgrade db command from 2.1.0 to 3

[X] Critical Error during the update process:

* SQLSTATE[42S02]: Base table or view not found: 1146 Table 'analytics.piwik_plugin_setting' doesn't exist

The above is the core error message. It should help explain the cause, but if you require further help please:

* Check the [ Piwik FAQ ] which explains most common errors during update.
* Ask your system administrator - they may be able to help you with the error which is most likely related to your server or MySQL setup.

If you are an advanced user and encounter an error in the database upgrade:

* identify and correct the source of the problem (e.g., memory_limit or max_execution_time)
* execute the remaining queries in the update that failed
* manually update the `option` table in your Piwik database, setting the value of version_core to the version of the failed update
* re-run the updater (through the browser or command-line) to continue with the remaining updates
* report the problem (and solution) so that Piwik can be improved

To create this missing table, see the SQL to run here: Updating from 2.16 to 3.0.0b1 fails: piwik_site_setting doesn't exist · Issue #10703 · matomo-org/piwik · GitHub