Details
-
Bug
-
Status: Open (View Workflow)
-
Minor
-
Resolution: Unresolved
-
10.0.3, 5.5.32, 5.1.67, 5.2.14, 5.3.12
-
None
-
None
Description
As a part of executing mysql_library_init (=mysql_server_init) user gives an array of arguments, one specifying '--datadir'. If accessing that directory fails, mariadb handlerton init fails, and the function returns with value indicating error, which is translated as 'Unknown error' to the user.
If the error is trivial and known for underlying OS, for example errno==2, file not found, it would be expected that mariadb would report the failure to the user so that user can correct her input argument. Now real error is hidden with no reason thus making it pretty difficult to write an application which could fix the problem without human intervention.
Currently, if opening datadir fails, the easiest way for the user is to build debug version and run debugger to see what failed.