Description:
When "mysql --help" is executed, default options are printed after options. The order is completely wrong.
How to repeat:
Run "mysql --help".
Suggested fix:
diff --git a/client/mysql.cc b/client/mysql.cc
index 55fed58861a..d9f384cfcc3 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -1936,8 +1936,8 @@ static void usage(int version)
break;
}
}
+ print_defaults(MYSQL_CONFIG_NAME, load_default_groups);
my_print_help(my_long_options);
- print_defaults("my", load_default_groups);
my_print_variables(my_long_options);
}
Description: When "mysql --help" is executed, default options are printed after options. The order is completely wrong. How to repeat: Run "mysql --help". Suggested fix: diff --git a/client/mysql.cc b/client/mysql.cc index 55fed58861a..d9f384cfcc3 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -1936,8 +1936,8 @@ static void usage(int version) break; } } + print_defaults(MYSQL_CONFIG_NAME, load_default_groups); my_print_help(my_long_options); - print_defaults("my", load_default_groups); my_print_variables(my_long_options); }