Complete steps which allow someone else who does not have access to your environment to reproduce the bug.
Applying the database patch from ⚙ D21570 Improve performance of "phabricator:20210215.changeset.02.phid-populate.php" fails with an access denied exception somehow when running
Applying patch "phabricator:20210215.changeset.02.phid-populate.php" to host "our_db_server"... [2021-02-26 14:46:49] EXCEPTION: (AphrontAccessDeniedQueryException) #1044: Access denied for user 'phabricator'@'our_phabricator_servver' to database 'phabricator_differential' at [<phabricator>/src/infrastructure/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:350]
Loading Phabricator displays this message:
Run the storage upgrade script to upgrade databases (host “our_database_server” is out of date). Missing patches: phabricator:20210215.changeset.02.phid-populate.php, phabricator:20210216.index.01.version.sql, phabricator:20210216.index.02.epoch.sql.
and suggests running
Output from Config > Version Information or
05745dfd024b1d5293cc1c894c26259f19975e80 “(stable) Promote 2021 Week 8”.
We’ve been running on the same database, applying updates and upgrading storage as we go, for several years now. MySQL 8.0.23 on Ubuntu.