Skip to content

Commit 04b8cb1

Browse files
author
Alexander Nozdrin
committed
Manual merge from mysql-trunk-merge.
Conflicts: - client/mysql.cc - client/mysqldump.c - configure.in - mysql-test/r/csv.result - mysql-test/r/func_time.result - mysql-test/r/show_check.result - mysql-test/r/sp-error.result - mysql-test/r/sp.result - mysql-test/r/sp_trans.result - mysql-test/r/type_blob.result - mysql-test/r/type_timestamp.result - mysql-test/r/warnings.result - mysql-test/suite/rpl/r/rpl_sp.result - sql/mysql_priv.h - sql/mysqld.cc - sql/sp.cc - sql/sql_base.cc - sql/sql_table.cc - sql/sql_trigger.cc - sql/sql_view.cc - sql/table.h - sql/share/errmsg.txt - mysql-test/suite/sys_vars/r/log_bin_trust_routine_creators_basic.result
2 parents bca31a6 + b416a55 commit 04b8cb1

File tree

100 files changed

+1890
-471
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+1890
-471
lines changed

client/mysql.cc

+18-18
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ static struct my_option my_long_options[] =
13651365
{"help", 'I', "Synonym for -?", 0, 0, 0, GET_NO_ARG, NO_ARG, 0,
13661366
0, 0, 0, 0, 0},
13671367
#ifdef __NETWARE__
1368-
{"autoclose", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
1368+
{"autoclose", OPT_AUTO_CLOSE, "Automatically close the screen on exit for Netware.",
13691369
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
13701370
#endif
13711371
{"auto-rehash", OPT_AUTO_REHASH,
@@ -1379,26 +1379,26 @@ static struct my_option my_long_options[] =
13791379
"Automatically switch to vertical output mode if the result is wider than the terminal width.",
13801380
(uchar**) &auto_vertical_output, (uchar**) &auto_vertical_output, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
13811381
{"batch", 'B',
1382-
"Don't use history file. Disable interactive behavior. (Enables --silent)", 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1382+
"Don't use history file. Disable interactive behavior. (Enables --silent.)", 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
13831383
{"character-sets-dir", OPT_CHARSETS_DIR,
1384-
"Directory where character sets are.", (uchar**) &charsets_dir,
1384+
"Directory for character set files.", (uchar**) &charsets_dir,
13851385
(uchar**) &charsets_dir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
13861386
{"column-type-info", OPT_COLUMN_TYPES, "Display column type information.",
13871387
(uchar**) &column_types_flag, (uchar**) &column_types_flag,
13881388
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
13891389
{"comments", 'c', "Preserve comments. Send comments to the server."
1390-
" The default is --skip-comments (discard comments), enable with --comments",
1390+
" The default is --skip-comments (discard comments), enable with --comments.",
13911391
(uchar**) &preserve_comments, (uchar**) &preserve_comments,
13921392
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
13931393
{"compress", 'C', "Use compression in server/client protocol.",
13941394
(uchar**) &opt_compress, (uchar**) &opt_compress, 0, GET_BOOL, NO_ARG, 0, 0, 0,
13951395
0, 0, 0},
13961396

13971397
#ifdef DBUG_OFF
1398-
{"debug", '#', "This is a non-debug version. Catch this and exit",
1398+
{"debug", '#', "This is a non-debug version. Catch this and exit.",
13991399
0,0, 0, GET_DISABLED, OPT_ARG, 0, 0, 0, 0, 0, 0},
14001400
#else
1401-
{"debug", '#', "Output debug log", (uchar**) &default_dbug_option,
1401+
{"debug", '#', "Output debug log.", (uchar**) &default_dbug_option,
14021402
(uchar**) &default_dbug_option, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
14031403
#endif
14041404
{"debug-check", OPT_DEBUG_CHECK, "Check memory and open file usage at exit.",
@@ -1413,12 +1413,12 @@ static struct my_option my_long_options[] =
14131413
(uchar**) &default_charset, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
14141414
{"delimiter", OPT_DELIMITER, "Delimiter to be used.", (uchar**) &delimiter_str,
14151415
(uchar**) &delimiter_str, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1416-
{"execute", 'e', "Execute command and quit. (Disables --force and history file)", 0,
1416+
{"execute", 'e', "Execute command and quit. (Disables --force and history file.)", 0,
14171417
0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
14181418
{"vertical", 'E', "Print the output of a query (rows) vertically.",
14191419
(uchar**) &vertical, (uchar**) &vertical, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0,
14201420
0},
1421-
{"force", 'f', "Continue even if we get an sql error.",
1421+
{"force", 'f', "Continue even if we get an SQL error.",
14221422
(uchar**) &ignore_errors, (uchar**) &ignore_errors, 0, GET_BOOL, NO_ARG, 0, 0,
14231423
0, 0, 0, 0},
14241424
{"named-commands", 'G',
@@ -1441,7 +1441,7 @@ static struct my_option my_long_options[] =
14411441
(uchar**) &current_host, 0, GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
14421442
{"html", 'H', "Produce HTML output.", (uchar**) &opt_html, (uchar**) &opt_html,
14431443
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1444-
{"xml", 'X', "Produce XML output", (uchar**) &opt_xml, (uchar**) &opt_xml, 0,
1444+
{"xml", 'X', "Produce XML output.", (uchar**) &opt_xml, (uchar**) &opt_xml, 0,
14451445
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
14461446
{"line-numbers", OPT_LINE_NUMBERS, "Write line numbers for errors.",
14471447
(uchar**) &line_numbers, (uchar**) &line_numbers, 0, GET_BOOL,
@@ -1456,15 +1456,15 @@ static struct my_option my_long_options[] =
14561456
{"skip-column-names", 'N',
14571457
"Don't write column names in results.",
14581458
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1459-
{"sigint-ignore", OPT_SIGINT_IGNORE, "Ignore SIGINT (CTRL-C)",
1459+
{"sigint-ignore", OPT_SIGINT_IGNORE, "Ignore SIGINT (CTRL-C).",
14601460
(uchar**) &opt_sigint_ignore, (uchar**) &opt_sigint_ignore, 0, GET_BOOL,
14611461
NO_ARG, 0, 0, 0, 0, 0, 0},
14621462
{"one-database", 'o',
14631463
"Only update the default database. This is useful for skipping updates to other database in the update log.",
14641464
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
14651465
#ifdef USE_POPEN
14661466
{"pager", OPT_PAGER,
1467-
"Pager to use to display results. If you don't supply an option the default pager is taken from your ENV variable PAGER. Valid pagers are less, more, cat [> filename], etc. See interactive help (\\h) also. This option does not work in batch mode. Disable with --disable-pager. This option is disabled by default.",
1467+
"Pager to use to display results. If you don't supply an option, the default pager is taken from your ENV variable PAGER. Valid pagers are less, more, cat [> filename], etc. See interactive help (\\h) also. This option does not work in batch mode. Disable with --disable-pager. This option is disabled by default.",
14681468
0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
14691469
#endif
14701470
{"password", 'p',
@@ -1485,7 +1485,7 @@ static struct my_option my_long_options[] =
14851485
{"prompt", OPT_PROMPT, "Set the mysql prompt to this value.",
14861486
(uchar**) &current_prompt, (uchar**) &current_prompt, 0, GET_STR_ALLOC,
14871487
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1488-
{"protocol", OPT_MYSQL_PROTOCOL, "The protocol of connection (tcp,socket,pipe,memory).",
1488+
{"protocol", OPT_MYSQL_PROTOCOL, "The protocol to use for connection (tcp, socket, pipe, memory).",
14891489
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
14901490
{"quick", 'q',
14911491
"Don't cache result, print it row by row. This may slow down the server if the output is suspended. Doesn't use history file.",
@@ -1502,7 +1502,7 @@ static struct my_option my_long_options[] =
15021502
"Base name of shared memory.", (uchar**) &shared_memory_base_name, (uchar**) &shared_memory_base_name,
15031503
0, GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
15041504
#endif
1505-
{"socket", 'S', "Socket file to use for connection.",
1505+
{"socket", 'S', "The socket file to use for connection.",
15061506
(uchar**) &opt_mysql_unix_port, (uchar**) &opt_mysql_unix_port, 0, GET_STR_ALLOC,
15071507
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
15081508
#include "sslopt-longopts.h"
@@ -1533,26 +1533,26 @@ static struct my_option my_long_options[] =
15331533
(uchar**) &opt_connect_timeout, 0, GET_ULONG, REQUIRED_ARG, 0, 0, 3600*12, 0,
15341534
0, 0},
15351535
{"max_allowed_packet", OPT_MAX_ALLOWED_PACKET,
1536-
"Max packet length to send to, or receive from server",
1536+
"The maximum packet length to send to or receive from server.",
15371537
(uchar**) &opt_max_allowed_packet, (uchar**) &opt_max_allowed_packet, 0,
15381538
GET_ULONG, REQUIRED_ARG, 16 *1024L*1024L, 4096,
15391539
(longlong) 2*1024L*1024L*1024L, MALLOC_OVERHEAD, 1024, 0},
15401540
{"net_buffer_length", OPT_NET_BUFFER_LENGTH,
1541-
"Buffer for TCP/IP and socket communication",
1541+
"The buffer size for TCP/IP and socket communication.",
15421542
(uchar**) &opt_net_buffer_length, (uchar**) &opt_net_buffer_length, 0, GET_ULONG,
15431543
REQUIRED_ARG, 16384, 1024, 512*1024*1024L, MALLOC_OVERHEAD, 1024, 0},
15441544
{"select_limit", OPT_SELECT_LIMIT,
1545-
"Automatic limit for SELECT when using --safe-updates",
1545+
"Automatic limit for SELECT when using --safe-updates.",
15461546
(uchar**) &select_limit,
15471547
(uchar**) &select_limit, 0, GET_ULONG, REQUIRED_ARG, 1000L, 1, ULONG_MAX,
15481548
0, 1, 0},
15491549
{"max_join_size", OPT_MAX_JOIN_SIZE,
1550-
"Automatic limit for rows in a join when using --safe-updates",
1550+
"Automatic limit for rows in a join when using --safe-updates.",
15511551
(uchar**) &max_join_size,
15521552
(uchar**) &max_join_size, 0, GET_ULONG, REQUIRED_ARG, 1000000L, 1, ULONG_MAX,
15531553
0, 1, 0},
15541554
{"secure-auth", OPT_SECURE_AUTH, "Refuse client connecting to server if it"
1555-
" uses old (pre-4.1.1) protocol", (uchar**) &opt_secure_auth,
1555+
" uses old (pre-4.1.1) protocol.", (uchar**) &opt_secure_auth,
15561556
(uchar**) &opt_secure_auth, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
15571557
{"server-arg", OPT_SERVER_ARG, "Send embedded server this as a parameter.",
15581558
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},

client/mysql_upgrade.c

+11-11
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,21 @@ static struct my_option my_long_options[]=
6363
{
6464
{"help", '?', "Display this help message and exit.", 0, 0, 0, GET_NO_ARG,
6565
NO_ARG, 0, 0, 0, 0, 0, 0},
66-
{"basedir", 'b', "Not used by mysql_upgrade. Only for backward compatibilty",
66+
{"basedir", 'b', "Not used by mysql_upgrade. Only for backward compatibility.",
6767
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
6868
{"character-sets-dir", OPT_CHARSETS_DIR,
69-
"Directory where character sets are.", 0,
69+
"Directory for character set files.", 0,
7070
0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
7171
{"compress", OPT_COMPRESS, "Use compression in server/client protocol.",
7272
(uchar**)&not_used, (uchar**)&not_used, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
7373
{"datadir", 'd',
74-
"Not used by mysql_upgrade. Only for backward compatibilty",
74+
"Not used by mysql_upgrade. Only for backward compatibility.",
7575
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
7676
#ifdef DBUG_OFF
77-
{"debug", '#', "This is a non-debug version. Catch this and exit",
77+
{"debug", '#', "This is a non-debug version. Catch this and exit.",
7878
0, 0, 0, GET_DISABLED, OPT_ARG, 0, 0, 0, 0, 0, 0},
7979
#else
80-
{"debug", '#', "Output debug log", (uchar* *) & default_dbug_option,
80+
{"debug", '#', "Output debug log.", (uchar* *) & default_dbug_option,
8181
(uchar* *) & default_dbug_option, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
8282
#endif
8383
{"debug-check", OPT_DEBUG_CHECK, "Check memory and open file usage at exit.",
@@ -95,7 +95,7 @@ static struct my_option my_long_options[]=
9595
{"host",'h', "Connect to host.", 0,
9696
0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
9797
{"password", 'p',
98-
"Password to use when connecting to server. If password is not given"
98+
"Password to use when connecting to server. If password is not given,"
9999
" it's solicited on the tty.", (uchar**) &opt_password,(uchar**) &opt_password,
100100
0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
101101
#ifdef __WIN__
@@ -110,25 +110,25 @@ static struct my_option my_long_options[]=
110110
"built-in default (" STRINGIFY_ARG(MYSQL_PORT) ").",
111111
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
112112
{"protocol", OPT_MYSQL_PROTOCOL,
113-
"The protocol of connection (tcp,socket,pipe,memory).",
113+
"The protocol to use for connection (tcp, socket, pipe, memory).",
114114
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
115115
#ifdef HAVE_SMEM
116116
{"shared-memory-base-name", OPT_SHARED_MEMORY_BASE_NAME,
117117
"Base name of shared memory.", 0,
118118
0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
119119
#endif
120-
{"socket", 'S', "Socket file to use for connection.",
120+
{"socket", 'S', "The socket file to use for connection.",
121121
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
122122
#include <sslopt-longopts.h>
123-
{"tmpdir", 't', "Directory for temporary files",
123+
{"tmpdir", 't', "Directory for temporary files.",
124124
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
125125
{"upgrade-system-tables", 's', "Only upgrade the system tables "
126126
"do not try to upgrade the data.",
127127
(uchar**)&opt_systables_only, (uchar**)&opt_systables_only, 0,
128128
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
129129
{"user", 'u', "User for login if not current user.", (uchar**) &opt_user,
130130
(uchar**) &opt_user, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
131-
{"verbose", 'v', "Display more output about the process",
131+
{"verbose", 'v', "Display more output about the process.",
132132
(uchar**) &opt_verbose, (uchar**) &opt_verbose, 0,
133133
GET_BOOL, NO_ARG, 1, 0, 0, 0, 0, 0},
134134
{"write-binlog", OPT_WRITE_BINLOG,
@@ -233,7 +233,7 @@ get_one_option(int optid, const struct my_option *opt,
233233
case '?':
234234
printf("%s Ver %s Distrib %s, for %s (%s)\n",
235235
my_progname, VER, MYSQL_SERVER_VERSION, SYSTEM_TYPE, MACHINE_TYPE);
236-
puts("MySQL utility for upgrading databases to new MySQL versions\n");
236+
puts("MySQL utility for upgrading databases to new MySQL versions.\n");
237237
my_print_help(my_long_options);
238238
exit(0);
239239
break;

client/mysqladmin.cc

+7-7
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ static TYPELIB command_typelib=
117117
static struct my_option my_long_options[] =
118118
{
119119
#ifdef __NETWARE__
120-
{"autoclose", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
120+
{"autoclose", OPT_AUTO_CLOSE, "Automatically close the screen on exit for Netware.",
121121
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
122122
#endif
123123
{"count", 'c',
@@ -128,7 +128,7 @@ static struct my_option my_long_options[] =
128128
{"debug", '#', "Output debug log. Often this is 'd:t:o,filename'.",
129129
0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
130130
#endif
131-
{"debug-check", OPT_DEBUG_CHECK, "Check memory and open file usage at exit .",
131+
{"debug-check", OPT_DEBUG_CHECK, "Check memory and open file usage at exit.",
132132
(uchar**) &debug_check_flag, (uchar**) &debug_check_flag, 0,
133133
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
134134
{"debug-info", OPT_DEBUG_INFO, "Print some debug info at exit.",
@@ -142,7 +142,7 @@ static struct my_option my_long_options[] =
142142
(uchar**) &opt_compress, (uchar**) &opt_compress, 0, GET_BOOL, NO_ARG, 0, 0, 0,
143143
0, 0, 0},
144144
{"character-sets-dir", OPT_CHARSETS_DIR,
145-
"Directory where character sets are.", (uchar**) &charsets_dir,
145+
"Directory for character set files.", (uchar**) &charsets_dir,
146146
(uchar**) &charsets_dir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
147147
{"default-character-set", OPT_DEFAULT_CHARSET,
148148
"Set the default character set.", (uchar**) &default_charset,
@@ -168,10 +168,10 @@ static struct my_option my_long_options[] =
168168
"built-in default (" STRINGIFY_ARG(MYSQL_PORT) ").",
169169
(uchar**) &tcp_port,
170170
(uchar**) &tcp_port, 0, GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
171-
{"protocol", OPT_MYSQL_PROTOCOL, "The protocol of connection (tcp,socket,pipe,memory).",
171+
{"protocol", OPT_MYSQL_PROTOCOL, "The protocol to use for connection (tcp, socket, pipe, memory).",
172172
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
173173
{"relative", 'r',
174-
"Show difference between current and previous values when used with -i. Currently works only with extended-status.",
174+
"Show difference between current and previous values when used with -i. Currently only works with extended-status.",
175175
(uchar**) &opt_relative, (uchar**) &opt_relative, 0, GET_BOOL, NO_ARG, 0, 0, 0,
176176
0, 0, 0},
177177
{"set-variable", 'O',
@@ -184,10 +184,10 @@ static struct my_option my_long_options[] =
184184
#endif
185185
{"silent", 's', "Silently exit if one can't connect to server.",
186186
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
187-
{"socket", 'S', "Socket file to use for connection.",
187+
{"socket", 'S', "The socket file to use for connection.",
188188
(uchar**) &unix_port, (uchar**) &unix_port, 0, GET_STR, REQUIRED_ARG, 0, 0, 0,
189189
0, 0, 0},
190-
{"sleep", 'i', "Execute commands again and again with a sleep between.",
190+
{"sleep", 'i', "Execute commands repeatedly with a sleep between.",
191191
(uchar**) &interval, (uchar**) &interval, 0, GET_INT, REQUIRED_ARG, 0, 0, 0, 0,
192192
0, 0},
193193
#include <sslopt-longopts.h>

client/mysqlbinlog.cc

+9-9
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ static struct my_option my_long_options[] =
10051005
{"help", '?', "Display this help and exit.",
10061006
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
10071007
#ifdef __NETWARE__
1008-
{"autoclose", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
1008+
{"autoclose", OPT_AUTO_CLOSE, "Automatically close the screen on exit for Netware.",
10091009
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
10101010
#endif
10111011
{"base64-output", OPT_BASE64_OUTPUT_MODE,
@@ -1029,7 +1029,7 @@ static struct my_option my_long_options[] =
10291029
SET @`a`:=_cp850 0x4DFC6C6C6572 COLLATE `cp850_general_ci`;
10301030
*/
10311031
{"character-sets-dir", OPT_CHARSETS_DIR,
1032-
"Directory where character sets are.", (uchar**) &charsets_dir,
1032+
"Directory for character set files.", (uchar**) &charsets_dir,
10331033
(uchar**) &charsets_dir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
10341034
{"database", 'd', "List entries for just this database (local log only).",
10351035
(uchar**) &database, (uchar**) &database, 0, GET_STR_ALLOC, REQUIRED_ARG,
@@ -1078,9 +1078,9 @@ static struct my_option my_long_options[] =
10781078
(uchar**) &port, (uchar**) &port, 0, GET_INT, REQUIRED_ARG,
10791079
0, 0, 0, 0, 0, 0},
10801080
{"protocol", OPT_MYSQL_PROTOCOL,
1081-
"The protocol of connection (tcp,socket,pipe,memory).",
1081+
"The protocol to use for connection (tcp, socket, pipe, memory).",
10821082
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1083-
{"read-from-remote-server", 'R', "Read binary logs from a MySQL server",
1083+
{"read-from-remote-server", 'R', "Read binary logs from a MySQL server.",
10841084
(uchar**) &remote_opt, (uchar**) &remote_opt, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0,
10851085
0, 0},
10861086
{"result-file", 'r', "Direct output to a given file.", 0, 0, 0, GET_STR,
@@ -1104,7 +1104,7 @@ static struct my_option my_long_options[] =
11041104
"using --base64-output=never instead.",
11051105
(uchar**) &short_form, (uchar**) &short_form, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0,
11061106
0, 0},
1107-
{"socket", 'S', "Socket file to use for connection.",
1107+
{"socket", 'S', "The socket file to use for connection.",
11081108
(uchar**) &sock, (uchar**) &sock, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0,
11091109
0, 0},
11101110
{"start-datetime", OPT_START_DATETIME,
@@ -1146,12 +1146,12 @@ that may lead to an endless loop.",
11461146
(uchar**) &user, (uchar**) &user, 0, GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0,
11471147
0, 0},
11481148
{"verbose", 'v', "Reconstruct SQL statements out of row events. "
1149-
"-v -v adds comments on column data types",
1149+
"-v -v adds comments on column data types.",
11501150
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
11511151
{"version", 'V', "Print version and exit.", 0, 0, 0, GET_NO_ARG, NO_ARG, 0,
11521152
0, 0, 0, 0, 0},
11531153
{"open_files_limit", OPT_OPEN_FILES_LIMIT,
1154-
"Used to reserve file descriptors for usage by this program",
1154+
"Used to reserve file descriptors for use by this program.",
11551155
(uchar**) &open_files_limit, (uchar**) &open_files_limit, 0, GET_ULONG,
11561156
REQUIRED_ARG, MY_NFILE, 8, OS_FILE_LIMIT, 0, 1, 0},
11571157
{0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}
@@ -1250,11 +1250,11 @@ static void usage()
12501250
print_version();
12511251
puts("By Monty and Sasha, for your professional use\n\
12521252
This software comes with NO WARRANTY: This is free software,\n\
1253-
and you are welcome to modify and redistribute it under the GPL license\n");
1253+
and you are welcome to modify and redistribute it under the GPL license.\n");
12541254

12551255
printf("\
12561256
Dumps a MySQL binary log in a format usable for viewing or for piping to\n\
1257-
the mysql command line client\n\n");
1257+
the mysql command line client.\n\n");
12581258
printf("Usage: %s [options] log-files\n", my_progname);
12591259
my_print_help(my_long_options);
12601260
my_print_variables(my_long_options);

0 commit comments

Comments
 (0)