Page MenuHomePhabricator

Make `bin/storage upgrade` and `bin/storage adjust` emit detailed messages if the user has no access to databases
ClosedPublic

Authored by epriestley on Jan 21 2016, 9:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 18, 1:29 AM
Unknown Object (File)
Fri, Dec 6, 8:24 PM
Unknown Object (File)
Thu, Dec 5, 7:58 AM
Unknown Object (File)
Thu, Nov 28, 2:51 PM
Unknown Object (File)
Tue, Nov 26, 10:59 PM
Unknown Object (File)
Thu, Nov 21, 9:57 PM
Unknown Object (File)
Wed, Nov 20, 5:55 PM
Unknown Object (File)
Nov 18 2024, 2:18 AM
Subscribers
None

Details

Summary

Ref T10195. Distinguish between "database does not exist" and "database exists, you just don't have permission to access it".

We can't easily get this information out of INFORMATION_SCHEMA but can just SHOW TABLES IN ... every database that looks like it's missing and then look at the error code.

Test Plan
  • Created a user limited with limited access.
  • Ran bin/storage adjust.
  • Got hopefully more helpful messages about access problems, instead of "Missing" errors.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Make `bin/storage upgrade` and `bin/storage adjust` emit detailed messages if the user has no access to databases.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Jan 21 2016, 9:05 PM
This revision was automatically updated to reflect the committed changes.