114
114
"Number of iterations to make. This works with -i (--sleep) only.",
115
(uchar**) &nr_iterations, (uchar**) &nr_iterations, 0, GET_UINT,
115
(char**) &nr_iterations, (char**) &nr_iterations, 0, GET_UINT,
116
116
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
118
118
{"debug", '#', "Output debug log. Often this is 'd:t:o,filename'.",
119
119
0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
121
121
{"debug-check", OPT_DEBUG_CHECK, "Check memory and open file usage at exit .",
122
(uchar**) &debug_check_flag, (uchar**) &debug_check_flag, 0,
122
(char**) &debug_check_flag, (char**) &debug_check_flag, 0,
123
123
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
124
124
{"debug-info", OPT_DEBUG_INFO, "Print some debug info at exit.",
125
(uchar**) &debug_info_flag, (uchar**) &debug_info_flag,
125
(char**) &debug_info_flag, (char**) &debug_info_flag,
126
126
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
128
128
"Don't ask for confirmation on drop database; with multiple commands, continue even if an error occurs.",
129
(uchar**) &option_force, (uchar**) &option_force, 0, GET_BOOL, NO_ARG, 0, 0,
129
(char**) &option_force, (char**) &option_force, 0, GET_BOOL, NO_ARG, 0, 0,
131
131
{"compress", 'C', "Use compression in server/client protocol.",
132
(uchar**) &opt_compress, (uchar**) &opt_compress, 0, GET_BOOL, NO_ARG, 0, 0, 0,
132
(char**) &opt_compress, (char**) &opt_compress, 0, GET_BOOL, NO_ARG, 0, 0, 0,
134
134
{"character-sets-dir", OPT_CHARSETS_DIR,
135
"Directory where character sets are.", (uchar**) &charsets_dir,
136
(uchar**) &charsets_dir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
135
"Directory where character sets are.", (char**) &charsets_dir,
136
(char**) &charsets_dir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
137
137
{"default-character-set", OPT_DEFAULT_CHARSET,
138
"Set the default character set.", (uchar**) &default_charset,
139
(uchar**) &default_charset, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
138
"Set the default character set.", (char**) &default_charset,
139
(char**) &default_charset, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
140
140
{"help", '?', "Display this help and exit.", 0, 0, 0, GET_NO_ARG,
141
141
NO_ARG, 0, 0, 0, 0, 0, 0},
142
{"host", 'h', "Connect to host.", (uchar**) &host, (uchar**) &host, 0, GET_STR,
142
{"host", 'h', "Connect to host.", (char**) &host, (char**) &host, 0, GET_STR,
143
143
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
144
{"no-beep", 'b', "Turn off beep on error.", (uchar**) &opt_nobeep,
145
(uchar**) &opt_nobeep, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
144
{"no-beep", 'b', "Turn off beep on error.", (char**) &opt_nobeep,
145
(char**) &opt_nobeep, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
146
146
{"password", 'p',
147
147
"Password to use when connecting to server. If password is not given it's asked from the tty.",
148
148
0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
152
152
"/etc/services, "
154
154
"built-in default (" STRINGIFY_ARG(MYSQL_PORT) ").",
156
(uchar**) &tcp_port, 0, GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
156
(char**) &tcp_port, 0, GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
157
157
{"protocol", OPT_MYSQL_PROTOCOL, "The protocol of connection (tcp,socket,pipe,memory).",
158
158
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
159
159
{"relative", 'r',
160
160
"Show difference between current and previous values when used with -i. Currently works only with extended-status.",
161
(uchar**) &opt_relative, (uchar**) &opt_relative, 0, GET_BOOL, NO_ARG, 0, 0, 0,
161
(char**) &opt_relative, (char**) &opt_relative, 0, GET_BOOL, NO_ARG, 0, 0, 0,
163
163
{"set-variable", 'O',
164
164
"Change the value of a variable. Please note that this option is deprecated; you can set variables directly with --variable-name=value.",
165
165
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
167
167
{"shared-memory-base-name", OPT_SHARED_MEMORY_BASE_NAME,
168
"Base name of shared memory.", (uchar**) &shared_memory_base_name, (uchar**) &shared_memory_base_name,
168
"Base name of shared memory.", (char**) &shared_memory_base_name, (char**) &shared_memory_base_name,
169
169
0, GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
171
171
{"silent", 's', "Silently exit if one can't connect to server.",
172
172
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
173
173
{"socket", 'S', "Socket file to use for connection.",
174
(uchar**) &unix_port, (uchar**) &unix_port, 0, GET_STR, REQUIRED_ARG, 0, 0, 0,
174
(char**) &unix_port, (char**) &unix_port, 0, GET_STR, REQUIRED_ARG, 0, 0, 0,
176
176
{"sleep", 'i', "Execute commands again and again with a sleep between.",
177
(uchar**) &interval, (uchar**) &interval, 0, GET_INT, REQUIRED_ARG, 0, 0, 0, 0,
177
(char**) &interval, (char**) &interval, 0, GET_INT, REQUIRED_ARG, 0, 0, 0, 0,
179
179
#ifndef DONT_ALLOW_USER_CHANGE
180
{"user", 'u', "User for login if not current user.", (uchar**) &user,
181
(uchar**) &user, 0, GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
180
{"user", 'u', "User for login if not current user.", (char**) &user,
181
(char**) &user, 0, GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
183
{"verbose", 'v', "Write more information.", (uchar**) &opt_verbose,
184
(uchar**) &opt_verbose, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
183
{"verbose", 'v', "Write more information.", (char**) &opt_verbose,
184
(char**) &opt_verbose, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
185
185
{"version", 'V', "Output version information and exit.", 0, 0, 0, GET_NO_ARG,
186
186
NO_ARG, 0, 0, 0, 0, 0, 0},
187
187
{"vertical", 'E',
188
188
"Print output vertically. Is similar to --relative, but prints output vertically.",
189
(uchar**) &opt_vertical, (uchar**) &opt_vertical, 0, GET_BOOL, NO_ARG, 0, 0, 0,
189
(char**) &opt_vertical, (char**) &opt_vertical, 0, GET_BOOL, NO_ARG, 0, 0, 0,
191
191
{"wait", 'w', "Wait and retry if connection is down.", 0, 0, 0, GET_UINT,
192
192
OPT_ARG, 0, 0, 0, 0, 0, 0},
193
{"connect_timeout", OPT_CONNECT_TIMEOUT, "", (uchar**) &opt_connect_timeout,
194
(uchar**) &opt_connect_timeout, 0, GET_ULONG, REQUIRED_ARG, 3600*12, 0,
193
{"connect_timeout", OPT_CONNECT_TIMEOUT, "", (char**) &opt_connect_timeout,
194
(char**) &opt_connect_timeout, 0, GET_ULONG, REQUIRED_ARG, 3600*12, 0,
195
195
3600*12, 0, 1, 0},
196
{"shutdown_timeout", OPT_SHUTDOWN_TIMEOUT, "", (uchar**) &opt_shutdown_timeout,
197
(uchar**) &opt_shutdown_timeout, 0, GET_ULONG, REQUIRED_ARG,
196
{"shutdown_timeout", OPT_SHUTDOWN_TIMEOUT, "", (char**) &opt_shutdown_timeout,
197
(char**) &opt_shutdown_timeout, 0, GET_ULONG, REQUIRED_ARG,
198
198
SHUTDOWN_DEF_TIMEOUT, 0, 3600*12, 0, 1, 0},
199
199
{ 0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}