Page MenuHomePhabricator

D15080.id36410.diff
No OneTemporary

D15080.id36410.diff

diff --git a/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php b/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php
--- a/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php
+++ b/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php
@@ -256,10 +256,19 @@
$query = str_replace('{$'.$key.'}', $value, $query);
}
- queryfx(
- $conn,
- '%Q',
- $query);
+ try {
+ queryfx($conn, '%Q', $query);
+ } catch (AphrontAccessDeniedQueryException $ex) {
+ throw new PhutilProxyException(
+ pht(
+ 'Unable to access a required database or table. This almost '.
+ 'always means that the user you are connecting with ("%s") does '.
+ 'not have sufficient permissions granted in MySQL. You can '.
+ 'use `bin/storage databases` to get a list of all databases '.
+ 'permission is required on.',
+ $this->getUser()),
+ $ex);
+ }
}
}

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 9, 4:38 AM (5 d, 10 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7386165
Default Alt Text
D15080.id36410.diff (1 KB)

Event Timeline