Skip to content

Commit e8fb7d7

Browse files
committed
Bug#17339009 --HELP DOES NOT PRINT ALL THE OPTIONS WHEN USED WITH MYSQL_SECURE_INSTALLATION
Problem: mysql_secure_installation supports option-file options like --defaults-file, --print-defaults etc. which are not printed as part of help text. Solution: Added a call print_defaults() which prints the missing options. Also added a newline character at one place for better readablity.
1 parent a5a2224 commit e8fb7d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/mysql_secure_installation.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,10 @@ static void usage()
9696
{
9797
print_version();
9898
fprintf(stdout, ORACLE_WELCOME_COPYRIGHT_NOTICE("2013"));
99-
fprintf(stdout, "MySQL Configuration Utility.");
99+
fprintf(stdout, "\nMySQL Configuration Utility.");
100100
fprintf(stdout, "Usage: %s [OPTIONS]\n", my_progname);
101101
my_print_help(my_connection_options);
102+
print_defaults("my", load_default_groups);
102103
my_print_variables(my_connection_options);
103104
}
104105

0 commit comments

Comments
 (0)