Commit 324e42fb authored by Michael Widenius's avatar Michael Widenius Committed by Monty

Give a better error message if we can't load mysql.plugin table

parent 44790f58
...@@ -1856,11 +1856,13 @@ static void plugin_load(MEM_ROOT *tmp_root) ...@@ -1856,11 +1856,13 @@ static void plugin_load(MEM_ROOT *tmp_root)
{ {
DBUG_PRINT("error",("Can't open plugin table")); DBUG_PRINT("error",("Can't open plugin table"));
if (!opt_help) if (!opt_help)
sql_print_error("Could not open mysql.plugin table. " sql_print_error("Could not open mysql.plugin table: \"%s\". "
"Some plugins may be not loaded"); "Some plugins may be not loaded",
new_thd->get_stmt_da()->message());
else else
sql_print_warning("Could not open mysql.plugin table. " sql_print_warning("Could not open mysql.plugin table: \"%s\". "
"Some options may be missing from the help text"); "Some options may be missing from the help text",
new_thd->get_stmt_da()->message());
goto end; goto end;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment