"bin/storage upgrade" failed as #1044: Access denied

Run bin/storage upgrade, after I got:

Applying patch "phabricator:20180418.alamanc.interface.unique.php" to host "10.135.32.252:3306"...
[2018-05-06 10:01:42] EXCEPTION: (AphrontAccessDeniedQueryException) #1044: Access denied for user 'bug_user'@'10.8.0.6' to database 'phabricator_almanac' at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:319]

How should I debug? Any help would be appreciated.

I ref it. My database is updated, when I grant LOCK TABLES to the mysql user after.