Page MenuHomePhabricator

Distinguish more carefully between different kinds of MySQL connection errors
ClosedPublic

Authored by epriestley on Jan 21 2016, 8:59 PM.
Tags
None
Referenced Files
F15465914: D15078.id36406.diff
Thu, Apr 3, 12:15 AM
F15460537: D15078.id36406.diff
Mon, Mar 31, 11:44 PM
F15455909: D15078.id36408.diff
Sun, Mar 30, 5:40 AM
F15454294: D15078.id.diff
Sat, Mar 29, 5:45 PM
F15449395: D15078.diff
Fri, Mar 28, 9:55 AM
F15408191: D15078.id36408.diff
Tue, Mar 18, 9:37 PM
F15394285: D15078.id36406.diff
Sat, Mar 15, 11:46 PM
F15394284: D15078.id.diff
Sat, Mar 15, 11:45 PM
Subscribers
None

Details

Summary

Ref T10195. Root issue: if the MySQL user doesn't have permission to access all the databases, we give them a fairly generic error instead of telling them exactly what's wrong.

Currently, we throw a generic exception on connection failure. Instead, throw a more granular one, and distinguish between bad credentials and no access.

Test Plan

See next revision.

Diff Detail

Event Timeline

epriestley retitled this revision from to Distinguish more carefully between different kinds of MySQL connection errors.
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, 8:59 PM
This revision was automatically updated to reflect the committed changes.