summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2011-11-28 17:48:19 +0100
committerSergei Golubchik <sergii@pisem.net>2011-11-28 17:48:19 +0100
commit07209ea34b20984b96b602016a28943da9d198b5 (patch)
tree34531fd1a50b3acc047b87e3ebbdb2c977935591 /sql
parent48b68611984a25ec5d32d69e5377444576ae510e (diff)
downloadmariadb-git-07209ea34b20984b96b602016a28943da9d198b5.tar.gz
consistency fixes for mysqld --help
Diffstat (limited to 'sql')
-rw-r--r--sql/mysqld.cc12
-rw-r--r--sql/sys_vars.cc23
2 files changed, 10 insertions, 25 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index 46b6ec3978a..da496f0a67d 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -6321,10 +6321,10 @@ struct my_option my_long_options[]=
{"log-bin", OPT_BIN_LOG,
"Log update queries in binary format. Optional argument should be name for "
"binary log. If not given "
- "datadir/'log-basename'-bin or 'datadir'/mysql-bin will be used (the later if "
+ "'datadir'/'log-basename'-bin or 'datadir'/mysql-bin will be used (the later if "
"--log-basename is not specified). We strongly recommend to use either "
"--log-basename or specify a filename to ensure that replication doesn't "
- "stop if the real hostname of the computer changes'.",
+ "stop if the real hostname of the computer changes.",
&opt_bin_logname, &opt_bin_logname, 0, GET_STR,
OPT_ARG, 0, 0, 0, 0, 0, 0},
{"log-bin-index", 0,
@@ -6350,7 +6350,7 @@ struct my_option my_long_options[]=
"Enable logging of slow queries (longer than --long-query-time) to log file "
"or table. Optional argument is a file name for the slow log. If not given, "
"'log-basename'-slow.log will be used. Use --log-output=TABLE if you want "
- "to have the log in the table 'mysql.slow_log'. "
+ "to have the log in the table mysql.slow_log. "
"Deprecated option, use --slow-query-log/--slow-query-log-file instead.",
&opt_slow_logname, &opt_slow_logname, 0, GET_STR_ALLOC, OPT_ARG,
0, 0, 0, 0, 0, 0},
@@ -6549,9 +6549,9 @@ struct my_option my_long_options[]=
{"version", 'V', "Output version information and exit.", 0, 0, 0, GET_NO_ARG,
NO_ARG, 0, 0, 0, 0, 0, 0},
{"plugin-load", 0,
- "Optional semicolon-separated list of plugins to load, where each plugin is "
- "identified as name=library, where name is the plugin name and library "
- "is the plugin library in plugin_dir.",
+ "Semicolon-separated list of plugins to load, where each plugin is "
+ "specified as ether a plugin_name=library_file pair or only a library_file. "
+ "If the latter case, all plugins from a given library_file will be loaded.",
&opt_plugin_load, &opt_plugin_load, 0,
GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
{"table_cache", 0, "Deprecated; use --table-open-cache instead.",
diff --git a/sql/sys_vars.cc b/sql/sys_vars.cc
index ef0e01b6e4e..d01f1892d58 100644
--- a/sql/sys_vars.cc
+++ b/sql/sys_vars.cc
@@ -914,7 +914,7 @@ static Sys_var_mybool Sys_trust_function_creators(
static Sys_var_charptr Sys_log_error(
"log_error",
"Log errors to file (instead of stdout). If file name is not specified "
- "then 'datadir'/'log-basename'.err or the pid-file path with extension "
+ "then 'datadir'/'log-basename'.err or the 'pid-file' path with extension "
".err is used",
READ_ONLY GLOBAL_VAR(log_error_file_ptr),
CMD_LINE(OPT_ARG, OPT_LOG_ERROR),
@@ -2847,7 +2847,7 @@ static bool fix_slow_log_file(sys_var *self, THD *thd, enum_var_type type)
}
static Sys_var_charptr Sys_slow_log_path(
"slow_query_log_file", "Log slow queries to given log file. "
- "Defaults logging to hostname-slow.log. Must be enabled to activate "
+ "Defaults logging to 'hostname'-slow.log. Must be enabled to activate "
"other slow log options",
PREALLOCATED GLOBAL_VAR(opt_slow_logname), CMD_LINE(REQUIRED_ARG),
IN_FS_CHARSET, DEFAULT(0), NO_MUTEX_GUARD, NOT_IN_BINLOG,
@@ -2915,7 +2915,7 @@ static Sys_var_have Sys_have_symlink(
static bool fix_log_state(sys_var *self, THD *thd, enum_var_type type);
static Sys_var_mybool Sys_general_log(
"general_log", "Log connections and queries to a table or log file. "
- "Defaults logging to a file hostname.log or a table mysql.general_log"
+ "Defaults logging to a file 'hostname'.log or a table mysql.general_log"
"if --log-output=TABLE is used",
GLOBAL_VAR(opt_log), CMD_LINE(OPT_ARG),
DEFAULT(FALSE), NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(0),
@@ -2931,7 +2931,7 @@ static Sys_var_mybool Sys_log(
static Sys_var_mybool Sys_slow_query_log(
"slow_query_log",
"Log slow queries to a table or log file. Defaults logging to a file "
- "hostname-slow.log or a table mysql.slow_log if --log-output=TABLE is "
+ "'hostname'-slow.log or a table mysql.slow_log if --log-output=TABLE is "
"used. Must be enabled to activate other slow log options",
GLOBAL_VAR(opt_slow_log), CMD_LINE(OPT_ARG),
DEFAULT(FALSE), NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(0),
@@ -3400,21 +3400,6 @@ static Sys_var_mybool Sys_thread_alarm(
READ_ONLY GLOBAL_VAR(opt_thread_alarm), CMD_LINE(OPT_ARG),
DEFAULT(TRUE));
-#if 0
-static Sys_var_charptr Sys_log_basename(
- "log_basename",
- "Basename for all log files and the .pid file. This sets all log file "
- "names at once (in 'datadir') and is normally the only option you need "
- "for specifying log files. This is especially recommend to be set if you "
- "are using replication as it ensures that your log file names are not "
- "depending on your host name. Sets names for --log-bin, --log-bin-index, "
- "--relay-log, --relay-log-index, --general-log-file, "
- "--log-slow-query-log-file, --log-error-file and --pid-file",
- READ_ONLY GLOBAL_VAR(opt_log_basename),
- CMD_LINE(REQUIRED_ARG, OPT_LOG_BASENAME),
- IN_FS_CHARSET, DEFAULT(0));
-#endif
-
static Sys_var_mybool Sys_query_cache_strip_comments(
"query_cache_strip_comments",
"Strip all comments from a query before storing it "