168
168
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
169
169
{"character-sets-dir", OPT_CHARSETS_DIR,
170
170
"Directory where character sets are.",
171
(uchar**) &charsets_dir, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
171
(char**) &charsets_dir, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
173
173
"Check table for errors.",
174
174
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
211
211
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
212
212
{"keys-used", 'k',
213
213
"Tell MyISAM to update only some specific keys. # is a bit mask of which keys to use. This can be used to get faster inserts.",
214
(uchar**) &check_param.keys_in_use,
215
(uchar**) &check_param.keys_in_use,
214
(char**) &check_param.keys_in_use,
215
(char**) &check_param.keys_in_use,
216
216
0, GET_ULL, REQUIRED_ARG, -1, 0, 0, 0, 0, 0},
217
217
{"max-record-length", OPT_MAX_RECORD_LENGTH,
218
218
"Skip rows bigger than this if myisamchk can't allocate memory to hold it",
219
(uchar**) &check_param.max_record_length,
220
(uchar**) &check_param.max_record_length,
219
(char**) &check_param.max_record_length,
220
(char**) &check_param.max_record_length,
221
221
0, GET_ULL, REQUIRED_ARG, LONGLONG_MAX, 0, LONGLONG_MAX, 0, 0, 0},
222
222
{"medium-check", 'm',
223
223
"Faster than extend-check, but only finds 99.99% of all errors. Should be good enough for most cases.",
247
247
{"set-auto-increment", 'A',
248
248
"Force auto_increment to start at this or higher value. If no value is given, then sets the next auto_increment value to the highest used value for the auto key + 1.",
249
(uchar**) &check_param.auto_increment_value,
250
(uchar**) &check_param.auto_increment_value,
249
(char**) &check_param.auto_increment_value,
250
(char**) &check_param.auto_increment_value,
251
251
0, GET_ULL, OPT_ARG, 0, 0, 0, 0, 0, 0},
252
252
{"set-collation", OPT_SET_COLLATION,
253
253
"Change the collation used by the index",
254
(uchar**) &set_collation_name, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
254
(char**) &set_collation_name, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
255
255
{"set-variable", 'O',
256
256
"Change the value of a variable. Please note that this option is deprecated; you can set variables directly with --variable-name=value.",
257
257
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
263
263
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
264
264
{"sort-records", 'R',
265
265
"Sort records according to an index. This makes your data much more localized and may speed up things. (It may be VERY slow to do a sort the first time!)",
266
(uchar**) &check_param.opt_sort_key,
267
(uchar**) &check_param.opt_sort_key,
266
(char**) &check_param.opt_sort_key,
267
(char**) &check_param.opt_sort_key,
268
268
0, GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
270
270
"Path for temporary files.",
271
(uchar**) &opt_tmpdir,
271
(char**) &opt_tmpdir,
272
272
0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
273
273
{"update-state", 'U',
274
274
"Mark tables as crashed if any errors were found.",
286
286
"Wait if table is locked.",
287
287
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
288
288
{ "key_buffer_size", OPT_KEY_BUFFER_SIZE, "",
289
(uchar**) &check_param.use_buffers, (uchar**) &check_param.use_buffers, 0,
289
(char**) &check_param.use_buffers, (char**) &check_param.use_buffers, 0,
290
290
GET_ULONG, REQUIRED_ARG, (long) USE_BUFFER_INIT, (long) MALLOC_OVERHEAD,
291
291
(long) ~0L, (long) MALLOC_OVERHEAD, (long) IO_SIZE, 0},
292
292
{ "key_cache_block_size", OPT_KEY_CACHE_BLOCK_SIZE, "",
293
(uchar**) &opt_key_cache_block_size,
294
(uchar**) &opt_key_cache_block_size, 0,
293
(char**) &opt_key_cache_block_size,
294
(char**) &opt_key_cache_block_size, 0,
295
295
GET_LONG, REQUIRED_ARG, MI_KEY_BLOCK_LENGTH, MI_MIN_KEY_BLOCK_LENGTH,
296
296
MI_MAX_KEY_BLOCK_LENGTH, 0, MI_MIN_KEY_BLOCK_LENGTH, 0},
297
297
{ "myisam_block_size", OPT_MYISAM_BLOCK_SIZE, "",
298
(uchar**) &opt_myisam_block_size, (uchar**) &opt_myisam_block_size, 0,
298
(char**) &opt_myisam_block_size, (char**) &opt_myisam_block_size, 0,
299
299
GET_LONG, REQUIRED_ARG, MI_KEY_BLOCK_LENGTH, MI_MIN_KEY_BLOCK_LENGTH,
300
300
MI_MAX_KEY_BLOCK_LENGTH, 0, MI_MIN_KEY_BLOCK_LENGTH, 0},
301
301
{ "read_buffer_size", OPT_READ_BUFFER_SIZE, "",
302
(uchar**) &check_param.read_buffer_length,
303
(uchar**) &check_param.read_buffer_length, 0, GET_ULONG, REQUIRED_ARG,
302
(char**) &check_param.read_buffer_length,
303
(char**) &check_param.read_buffer_length, 0, GET_ULONG, REQUIRED_ARG,
304
304
(long) READ_BUFFER_INIT, (long) MALLOC_OVERHEAD,
305
305
(long) ~0L, (long) MALLOC_OVERHEAD, (long) 1L, 0},
306
306
{ "write_buffer_size", OPT_WRITE_BUFFER_SIZE, "",
307
(uchar**) &check_param.write_buffer_length,
308
(uchar**) &check_param.write_buffer_length, 0, GET_ULONG, REQUIRED_ARG,
307
(char**) &check_param.write_buffer_length,
308
(char**) &check_param.write_buffer_length, 0, GET_ULONG, REQUIRED_ARG,
309
309
(long) READ_BUFFER_INIT, (long) MALLOC_OVERHEAD,
310
310
(long) ~0L, (long) MALLOC_OVERHEAD, (long) 1L, 0},
311
311
{ "sort_buffer_size", OPT_SORT_BUFFER_SIZE, "",
312
(uchar**) &check_param.sort_buffer_length,
313
(uchar**) &check_param.sort_buffer_length, 0, GET_ULONG, REQUIRED_ARG,
312
(char**) &check_param.sort_buffer_length,
313
(char**) &check_param.sort_buffer_length, 0, GET_ULONG, REQUIRED_ARG,
314
314
(long) SORT_BUFFER_INIT, (long) (MIN_SORT_BUFFER + MALLOC_OVERHEAD),
315
315
(long) ~0L, (long) MALLOC_OVERHEAD, (long) 1L, 0},
316
316
{ "sort_key_blocks", OPT_SORT_KEY_BLOCKS, "",
317
(uchar**) &check_param.sort_key_blocks,
318
(uchar**) &check_param.sort_key_blocks, 0, GET_ULONG, REQUIRED_ARG,
317
(char**) &check_param.sort_key_blocks,
318
(char**) &check_param.sort_key_blocks, 0, GET_ULONG, REQUIRED_ARG,
319
319
BUFFERS_WHEN_SORTING, 4L, 100L, 0L, 1L, 0},
320
{ "decode_bits", OPT_DECODE_BITS, "", (uchar**) &decode_bits,
321
(uchar**) &decode_bits, 0, GET_UINT, REQUIRED_ARG, 9L, 4L, 17L, 0L, 1L, 0},
320
{ "decode_bits", OPT_DECODE_BITS, "", (char**) &decode_bits,
321
(char**) &decode_bits, 0, GET_UINT, REQUIRED_ARG, 9L, 4L, 17L, 0L, 1L, 0},
322
322
{"stats_method", OPT_STATS_METHOD,
323
323
"Specifies how index statistics collection code should treat NULLs. "
324
324
"Possible values of name are \"nulls_unequal\" (default behavior for 4.1/5.0), "
325
325
"\"nulls_equal\" (emulate 4.0 behavior), and \"nulls_ignored\".",
326
(uchar**) &myisam_stats_method_str, (uchar**) &myisam_stats_method_str, 0,
326
(char**) &myisam_stats_method_str, (char**) &myisam_stats_method_str, 0,
327
327
GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
328
328
{ 0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}