Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15333761
D15080.id36410.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D15080.id36410.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D15080: Throw a more tailored error when a `storage upgrade` patch can't access a database
Attached
Detach File
Event Timeline
Log In to Comment