diff options
author | Michael Widenius <monty@mariadb.org> | 2020-02-12 18:31:09 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2020-03-24 21:00:04 +0200 |
commit | 324e42fbdc0d9d976788498ab242cb3fd60ef803 (patch) | |
tree | 5fde8763b2b93798a6582e652207da70b8b5a7e1 | |
parent | 44790f58ac5d0c63072bc50f96d40965a4979151 (diff) | |
download | mariadb-git-324e42fbdc0d9d976788498ab242cb3fd60ef803.tar.gz |
Give a better error message if we can't load mysql.plugin table
-rw-r--r-- | sql/sql_plugin.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sql/sql_plugin.cc b/sql/sql_plugin.cc index abbea912c68..58619651bf1 100644 --- a/sql/sql_plugin.cc +++ b/sql/sql_plugin.cc @@ -1856,11 +1856,13 @@ static void plugin_load(MEM_ROOT *tmp_root) { DBUG_PRINT("error",("Can't open plugin table")); if (!opt_help) - sql_print_error("Could not open mysql.plugin table. " - "Some plugins may be not loaded"); + sql_print_error("Could not open mysql.plugin table: \"%s\". " + "Some plugins may be not loaded", + new_thd->get_stmt_da()->message()); else - sql_print_warning("Could not open mysql.plugin table. " - "Some options may be missing from the help text"); + sql_print_warning("Could not open mysql.plugin table: \"%s\". " + "Some options may be missing from the help text", + new_thd->get_stmt_da()->message()); goto end; } |