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
F18828379: D15078.id.diff
Fri, Oct 24, 4:00 PM
F18822980: D15078.diff
Thu, Oct 23, 9:39 AM
F18777908: D15078.id.diff
Sat, Oct 11, 6:24 AM
F18666980: D15078.diff
Sep 24 2025, 8:47 AM
F18625696: D15078.id36406.diff
Sep 15 2025, 11:20 PM
F18623470: D15078.id.diff
Sep 15 2025, 3:56 PM
F18597442: D15078.diff
Sep 13 2025, 2:53 AM
Unknown Object (File)
Jun 16 2025, 8:59 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

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.