3006
3356
OPT_ENABLE_LARGE_PAGES,
3007
3357
OPT_TIMED_MUTEXES,
3008
3358
OPT_OLD_STYLE_USER_LIMITS,
3359
OPT_LOG_SLOW_ADMIN_STATEMENTS,
3009
3360
OPT_TABLE_LOCK_WAIT_TIMEOUT,
3010
3361
OPT_PLUGIN_LOAD,
3011
3362
OPT_PLUGIN_DIR,
3012
3364
OPT_PORT_OPEN_TIMEOUT,
3014
3366
OPT_KEEP_FILES_ON_CREATE,
3015
3367
OPT_GENERAL_LOG,
3016
3369
OPT_THREAD_HANDLING,
3017
3370
OPT_INNODB_ROLLBACK_ON_TIMEOUT,
3018
3371
OPT_SECURE_FILE_PRIV,
3019
3372
OPT_MIN_EXAMINED_ROW_LIMIT,
3373
OPT_LOG_SLOW_SLAVE_STATEMENTS,
3021
3375
OPT_POOL_OF_THREADS,
3022
3376
OPT_SLAVE_EXEC_MODE
3026
#define LONG_TIMEOUT ((uint32_t) 3600L*24L*365L)
3380
#define LONG_TIMEOUT ((ulong) 3600L*24L*365L)
3028
3382
struct my_option my_long_options[] =
3030
{"help", '?', N_("Display this help and exit."),
3031
(char**) &opt_help, (char**) &opt_help, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0,
3384
{"help", '?', "Display this help and exit.",
3385
(uchar**) &opt_help, (uchar**) &opt_help, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0,
3033
3387
{"abort-slave-event-count", OPT_ABORT_SLAVE_EVENT_COUNT,
3034
N_("Option used by mysql-test for debugging and testing of replication."),
3035
(char**) &abort_slave_event_count, (char**) &abort_slave_event_count,
3388
"Option used by mysql-test for debugging and testing of replication.",
3389
(uchar**) &abort_slave_event_count, (uchar**) &abort_slave_event_count,
3036
3390
0, GET_INT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3391
{"allow-suspicious-udfs", OPT_ALLOW_SUSPICIOUS_UDFS,
3392
"Allows use of UDFs consisting of only one symbol xxx() "
3393
"without corresponding xxx_init() or xxx_deinit(). That also means "
3394
"that one can load any function from any library, for example exit() "
3396
(uchar**) &opt_allow_suspicious_udfs, (uchar**) &opt_allow_suspicious_udfs,
3397
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3398
{"ansi", 'a', "Use ANSI SQL syntax instead of MySQL syntax. This mode will also set transaction isolation level 'serializable'.", 0, 0, 0,
3399
GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
3037
3400
{"auto-increment-increment", OPT_AUTO_INCREMENT,
3038
N_("Auto-increment columns are incremented by this"),
3039
(char**) &global_system_variables.auto_increment_increment,
3040
(char**) &max_system_variables.auto_increment_increment, 0, GET_ULONG,
3401
"Auto-increment columns are incremented by this",
3402
(uchar**) &global_system_variables.auto_increment_increment,
3403
(uchar**) &max_system_variables.auto_increment_increment, 0, GET_ULONG,
3041
3404
OPT_ARG, 1, 1, 65535, 0, 1, 0 },
3042
3405
{"auto-increment-offset", OPT_AUTO_INCREMENT_OFFSET,
3043
N_("Offset added to Auto-increment columns. Used when "
3044
"auto-increment-increment != 1"),
3045
(char**) &global_system_variables.auto_increment_offset,
3046
(char**) &max_system_variables.auto_increment_offset, 0, GET_ULONG, OPT_ARG,
3406
"Offset added to Auto-increment columns. Used when auto-increment-increment != 1",
3407
(uchar**) &global_system_variables.auto_increment_offset,
3408
(uchar**) &max_system_variables.auto_increment_offset, 0, GET_ULONG, OPT_ARG,
3047
3409
1, 1, 65535, 0, 1, 0 },
3048
3410
{"basedir", 'b',
3049
N_("Path to installation directory. All paths are usually resolved "
3050
"relative to this."),
3051
(char**) &mysql_home_ptr, (char**) &mysql_home_ptr, 0, GET_STR, REQUIRED_ARG,
3411
"Path to installation directory. All paths are usually resolved relative to this.",
3412
(uchar**) &mysql_home_ptr, (uchar**) &mysql_home_ptr, 0, GET_STR, REQUIRED_ARG,
3052
3413
0, 0, 0, 0, 0, 0},
3053
{"bind-address", OPT_BIND_ADDRESS, N_("IP address to bind to."),
3054
(char**) &my_bind_addr_str, (char**) &my_bind_addr_str, 0, GET_STR,
3414
{"big-tables", OPT_BIG_TABLES,
3415
"Allow big result sets by saving all temporary sets on file (Solves most 'table full' errors).",
3416
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
3417
{"bind-address", OPT_BIND_ADDRESS, "IP address to bind to.",
3418
(uchar**) &my_bind_addr_str, (uchar**) &my_bind_addr_str, 0, GET_STR,
3055
3419
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3056
3420
{"binlog_format", OPT_BINLOG_FORMAT,
3057
N_("Does not have any effect without '--log-bin'. "
3058
"Tell the master the form of binary logging to use: either 'row' for "
3059
"row-based binary logging, or 'statement' for statement-based binary "
3060
"logging, or 'mixed'. 'mixed' is statement-based binary logging except "
3061
"for those statements where only row-based is correct: those which "
3062
"involve user-defined functions (i.e. UDFs) or the UUID() function; for "
3063
"those, row-based binary logging is automatically used. ")
3064
,(char**) &opt_binlog_format, (char**) &opt_binlog_format,
3421
"Does not have any effect without '--log-bin'. "
3422
"Tell the master the form of binary logging to use: either 'row' for "
3423
"row-based binary logging, or 'statement' for statement-based binary "
3424
"logging, or 'mixed'. 'mixed' is statement-based binary logging except "
3425
"for those statements where only row-based is correct: those which "
3426
"involve user-defined functions (i.e. UDFs) or the UUID() function; for "
3427
"those, row-based binary logging is automatically used. "
3428
,(uchar**) &opt_binlog_format, (uchar**) &opt_binlog_format,
3065
3429
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3066
3430
{"binlog-do-db", OPT_BINLOG_DO_DB,
3067
N_("Tells the master it should log updates for the specified database, and "
3068
"exclude all others not explicitly mentioned."),
3431
"Tells the master it should log updates for the specified database, and exclude all others not explicitly mentioned.",
3069
3432
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3070
3433
{"binlog-ignore-db", OPT_BINLOG_IGNORE_DB,
3071
N_("Tells the master that updates to the given database should not "
3072
"be logged tothe binary log."),
3434
"Tells the master that updates to the given database should not be logged tothe binary log.",
3073
3435
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3074
3436
{"binlog-row-event-max-size", OPT_BINLOG_ROWS_EVENT_MAX_SIZE,
3075
N_("The maximum size of a row-based binary log event in bytes. Rows will "
3076
"be grouped into events smaller than this size if possible. "
3077
"The value has to be a multiple of 256."),
3078
(char**) &opt_binlog_rows_event_max_size,
3079
(char**) &opt_binlog_rows_event_max_size, 0,
3080
GET_ULONG, REQUIRED_ARG,
3081
/* def_value */ 1024, /* min_value */ 256, /* max_value */ ULONG_MAX,
3082
/* sub_size */ 0, /* block_size */ 256,
3437
"The maximum size of a row-based binary log event in bytes. Rows will be "
3438
"grouped into events smaller than this size if possible. "
3439
"The value has to be a multiple of 256.",
3440
(uchar**) &opt_binlog_rows_event_max_size,
3441
(uchar**) &opt_binlog_rows_event_max_size, 0,
3442
GET_ULONG, REQUIRED_ARG,
3443
/* def_value */ 1024, /* min_value */ 256, /* max_value */ ULONG_MAX,
3444
/* sub_size */ 0, /* block_size */ 256,
3083
3445
/* app_type */ 0
3447
#ifndef DISABLE_GRANT_OPTIONS
3448
{"bootstrap", OPT_BOOTSTRAP, "Used by mysql installation scripts.", 0, 0, 0,
3449
GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
3085
3451
{"character-set-client-handshake", OPT_CHARACTER_SET_CLIENT_HANDSHAKE,
3086
N_("Don't ignore client side character set value sent during handshake."),
3087
(char**) &opt_character_set_client_handshake,
3088
(char**) &opt_character_set_client_handshake,
3452
"Don't ignore client side character set value sent during handshake.",
3453
(uchar**) &opt_character_set_client_handshake,
3454
(uchar**) &opt_character_set_client_handshake,
3089
3455
0, GET_BOOL, NO_ARG, 1, 0, 0, 0, 0, 0},
3090
3456
{"character-set-filesystem", OPT_CHARACTER_SET_FILESYSTEM,
3091
N_("Set the filesystem character set."),
3092
(char**) &character_set_filesystem_name,
3093
(char**) &character_set_filesystem_name,
3457
"Set the filesystem character set.",
3458
(uchar**) &character_set_filesystem_name,
3459
(uchar**) &character_set_filesystem_name,
3094
3460
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 },
3095
{"character-set-server", 'C',
3096
N_("Set the default character set."),
3097
(char**) &default_character_set_name, (char**) &default_character_set_name,
3461
{"character-set-server", 'C', "Set the default character set.",
3462
(uchar**) &default_character_set_name, (uchar**) &default_character_set_name,
3098
3463
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 },
3099
3464
{"character-sets-dir", OPT_CHARSETS_DIR,
3100
N_("Directory where character sets are."), (char**) &charsets_dir,
3101
(char**) &charsets_dir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3103
N_("Chroot mysqld daemon during startup."),
3104
(char**) &mysqld_chroot, (char**) &mysqld_chroot, 0, GET_STR, REQUIRED_ARG,
3465
"Directory where character sets are.", (uchar**) &charsets_dir,
3466
(uchar**) &charsets_dir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3467
{"chroot", 'r', "Chroot mysqld daemon during startup.",
3468
(uchar**) &mysqld_chroot, (uchar**) &mysqld_chroot, 0, GET_STR, REQUIRED_ARG,
3105
3469
0, 0, 0, 0, 0, 0},
3106
{"collation-server", OPT_DEFAULT_COLLATION,
3107
N_("Set the default collation."),
3108
(char**) &default_collation_name, (char**) &default_collation_name,
3470
{"collation-server", OPT_DEFAULT_COLLATION, "Set the default collation.",
3471
(uchar**) &default_collation_name, (uchar**) &default_collation_name,
3109
3472
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 },
3110
{"completion-type", OPT_COMPLETION_TYPE,
3111
N_("Default completion type."),
3112
(char**) &global_system_variables.completion_type,
3113
(char**) &max_system_variables.completion_type, 0, GET_ULONG,
3473
{"completion-type", OPT_COMPLETION_TYPE, "Default completion type.",
3474
(uchar**) &global_system_variables.completion_type,
3475
(uchar**) &max_system_variables.completion_type, 0, GET_ULONG,
3114
3476
REQUIRED_ARG, 0, 0, 2, 0, 1, 0},
3115
{"console", OPT_CONSOLE,
3116
N_("Write error output on screen."),
3117
(char**) &opt_console, (char**) &opt_console, 0, GET_BOOL, NO_ARG, 0, 0, 0,
3477
{"console", OPT_CONSOLE, "Write error output on screen; Don't remove the console window on windows.",
3478
(uchar**) &opt_console, (uchar**) &opt_console, 0, GET_BOOL, NO_ARG, 0, 0, 0,
3119
{"core-file", OPT_WANT_CORE,
3120
N_("Write core on errors."),
3121
0, 0, 0, GET_NO_ARG,
3480
{"core-file", OPT_WANT_CORE, "Write core on errors.", 0, 0, 0, GET_NO_ARG,
3122
3481
NO_ARG, 0, 0, 0, 0, 0, 0},
3124
N_("Path to the database root."),
3125
(char**) &mysql_data_home,
3126
(char**) &mysql_data_home, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3482
{"datadir", 'h', "Path to the database root.", (uchar**) &mysql_data_home,
3483
(uchar**) &mysql_data_home, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3485
{"debug", '#', "Debug log.", (uchar**) &default_dbug_option,
3486
(uchar**) &default_dbug_option, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
3488
{"default-character-set", 'C', "Set the default character set (deprecated option, use --character-set-server instead).",
3489
(uchar**) &default_character_set_name, (uchar**) &default_character_set_name,
3490
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 },
3491
{"default-collation", OPT_DEFAULT_COLLATION, "Set the default collation (deprecated option, use --collation-server instead).",
3492
(uchar**) &default_collation_name, (uchar**) &default_collation_name,
3493
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 },
3127
3494
{"default-storage-engine", OPT_STORAGE_ENGINE,
3128
N_("Set the default storage engine (table type) for tables."),
3129
(char**)&default_storage_engine_str, (char**)&default_storage_engine_str,
3130
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3131
{"default-time-zone", OPT_DEFAULT_TIME_ZONE,
3132
N_("Set the default time zone."),
3133
(char**) &default_tz_name, (char**) &default_tz_name,
3495
"Set the default storage engine (table type) for tables.",
3496
(uchar**)&default_storage_engine_str, (uchar**)&default_storage_engine_str,
3497
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3498
{"default-table-type", OPT_STORAGE_ENGINE,
3499
"(deprecated) Use --default-storage-engine.",
3500
(uchar**)&default_storage_engine_str, (uchar**)&default_storage_engine_str,
3501
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3502
{"default-time-zone", OPT_DEFAULT_TIME_ZONE, "Set the default time zone.",
3503
(uchar**) &default_tz_name, (uchar**) &default_tz_name,
3134
3504
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 },
3135
{"delay-key-write", OPT_DELAY_KEY_WRITE,
3136
N_("Type of DELAY_KEY_WRITE."),
3505
{"delay-key-write", OPT_DELAY_KEY_WRITE, "Type of DELAY_KEY_WRITE.",
3137
3506
0,0,0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
3507
{"delay-key-write-for-all-tables", OPT_DELAY_KEY_WRITE_ALL,
3508
"Don't flush key buffers between writes for any MyISAM table (Deprecated option, use --delay-key-write=all instead).",
3509
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
3138
3510
{"disconnect-slave-event-count", OPT_DISCONNECT_SLAVE_EVENT_COUNT,
3139
N_("Option used by mysql-test for debugging and testing of replication."),
3140
(char**) &disconnect_slave_event_count,
3141
(char**) &disconnect_slave_event_count, 0, GET_INT, REQUIRED_ARG, 0, 0, 0,
3511
"Option used by mysql-test for debugging and testing of replication.",
3512
(uchar**) &disconnect_slave_event_count,
3513
(uchar**) &disconnect_slave_event_count, 0, GET_INT, REQUIRED_ARG, 0, 0, 0,
3143
3515
#ifdef HAVE_STACK_TRACE_ON_SEGV
3144
{"enable-pstack", OPT_DO_PSTACK,
3145
N_("Print a symbolic stack trace on failure."),
3146
(char**) &opt_do_pstack, (char**) &opt_do_pstack, 0, GET_BOOL, NO_ARG, 0, 0,
3516
{"enable-pstack", OPT_DO_PSTACK, "Print a symbolic stack trace on failure.",
3517
(uchar**) &opt_do_pstack, (uchar**) &opt_do_pstack, 0, GET_BOOL, NO_ARG, 0, 0,
3148
3519
#endif /* HAVE_STACK_TRACE_ON_SEGV */
3149
3520
{"engine-condition-pushdown",
3150
3521
OPT_ENGINE_CONDITION_PUSHDOWN,
3151
N_("Push supported query conditions to the storage engine."),
3152
(char**) &global_system_variables.engine_condition_pushdown,
3153
(char**) &global_system_variables.engine_condition_pushdown,
3522
"Push supported query conditions to the storage engine.",
3523
(uchar**) &global_system_variables.engine_condition_pushdown,
3524
(uchar**) &global_system_variables.engine_condition_pushdown,
3154
3525
0, GET_BOOL, NO_ARG, 1, 0, 0, 0, 0, 0},
3155
3526
/* See how it's handled in get_one_option() */
3157
N_("Used for debugging; Use at your own risk!"),
3158
0, 0, 0, GET_LONG, OPT_ARG, 0, 0, 0, 0, 0, 0},
3159
{"flush", OPT_FLUSH,
3160
N_("Flush tables to disk between SQL commands."),
3161
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
3527
{"exit-info", 'T', "Used for debugging; Use at your own risk!", 0, 0, 0,
3528
GET_LONG, OPT_ARG, 0, 0, 0, 0, 0, 0},
3529
{"flush", OPT_FLUSH, "Flush tables to disk between SQL commands.", 0, 0, 0,
3530
GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
3162
3531
/* We must always support the next option to make scripts like mysqltest
3163
3532
easier to do */
3164
3533
{"gdb", OPT_DEBUGGING,
3165
N_("Set up signals usable for debugging"),
3166
(char**) &opt_debugging, (char**) &opt_debugging,
3534
"Set up signals usable for debugging",
3535
(uchar**) &opt_debugging, (uchar**) &opt_debugging,
3167
3536
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3168
{"init-connect", OPT_INIT_CONNECT,
3169
N_("Command(s) that are executed for each new connection"),
3170
(char**) &opt_init_connect, (char**) &opt_init_connect, 0, GET_STR_ALLOC,
3537
{"general-log", OPT_GENERAL_LOG,
3538
"Enable|disable general log", (uchar**) &opt_log,
3539
(uchar**) &opt_log, 0, GET_BOOL, OPT_ARG, 0, 0, 0, 0, 0, 0},
3540
{"init-connect", OPT_INIT_CONNECT, "Command(s) that are executed for each new connection",
3541
(uchar**) &opt_init_connect, (uchar**) &opt_init_connect, 0, GET_STR_ALLOC,
3171
3542
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3172
{"init-file", OPT_INIT_FILE,
3173
N_("Read SQL commands from this file at startup."),
3174
(char**) &opt_init_file, (char**) &opt_init_file, 0, GET_STR, REQUIRED_ARG,
3543
{"init-file", OPT_INIT_FILE, "Read SQL commands from this file at startup.",
3544
(uchar**) &opt_init_file, (uchar**) &opt_init_file, 0, GET_STR, REQUIRED_ARG,
3175
3545
0, 0, 0, 0, 0, 0},
3176
{"init-slave", OPT_INIT_SLAVE,
3177
N_("Command(s) that are executed when a slave connects to this master"),
3178
(char**) &opt_init_slave, (char**) &opt_init_slave, 0, GET_STR_ALLOC,
3546
{"init-slave", OPT_INIT_SLAVE, "Command(s) that are executed when a slave connects to this master",
3547
(uchar**) &opt_init_slave, (uchar**) &opt_init_slave, 0, GET_STR_ALLOC,
3179
3548
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3180
3549
{"language", 'L',
3182
(char**) &language_ptr, (char**) &language_ptr, 0, GET_STR, REQUIRED_ARG,
3550
"Client error messages in given language. May be given as a full path.",
3551
(uchar**) &language_ptr, (uchar**) &language_ptr, 0, GET_STR, REQUIRED_ARG,
3183
3552
0, 0, 0, 0, 0, 0},
3184
3553
{"lc-time-names", OPT_LC_TIME_NAMES,
3185
N_("Set the language used for the month names and the days of the week."),
3186
(char**) &lc_time_names_name,
3187
(char**) &lc_time_names_name,
3554
"Set the language used for the month names and the days of the week.",
3555
(uchar**) &lc_time_names_name,
3556
(uchar**) &lc_time_names_name,
3188
3557
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 },
3189
3558
{"local-infile", OPT_LOCAL_INFILE,
3190
N_("Enable/disable LOAD DATA LOCAL INFILE (takes values 1|0)."),
3191
(char**) &opt_local_infile,
3192
(char**) &opt_local_infile, 0, GET_BOOL, OPT_ARG,
3559
"Enable/disable LOAD DATA LOCAL INFILE (takes values 1|0).",
3560
(uchar**) &opt_local_infile,
3561
(uchar**) &opt_local_infile, 0, GET_BOOL, OPT_ARG,
3193
3562
1, 0, 0, 0, 0, 0},
3195
N_("Log connections and queries to file."),
3196
(char**) &opt_logname,
3197
(char**) &opt_logname, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
3563
{"log", 'l', "Log connections and queries to file.", (uchar**) &opt_logname,
3564
(uchar**) &opt_logname, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
3198
3565
{"log-bin", OPT_BIN_LOG,
3199
N_("Log update queries in binary format. Optional argument is the "
3200
"location for the binary log files.(Strongly "
3201
"recommended to avoid replication problems if server's hostname "
3203
(char**) &opt_bin_logname, (char**) &opt_bin_logname, 0, GET_STR_ALLOC,
3566
"Log update queries in binary format. Optional (but strongly recommended "
3567
"to avoid replication problems if server's hostname changes) argument "
3568
"should be the chosen location for the binary log files.",
3569
(uchar**) &opt_bin_logname, (uchar**) &opt_bin_logname, 0, GET_STR_ALLOC,
3204
3570
OPT_ARG, 0, 0, 0, 0, 0, 0},
3205
3571
{"log-bin-index", OPT_BIN_LOG_INDEX,
3206
N_("File that holds the names for last binary log files."),
3207
(char**) &opt_binlog_index_name, (char**) &opt_binlog_index_name, 0, GET_STR,
3572
"File that holds the names for last binary log files.",
3573
(uchar**) &opt_binlog_index_name, (uchar**) &opt_binlog_index_name, 0, GET_STR,
3208
3574
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3209
{"log-error", OPT_ERROR_LOG_FILE,
3210
N_("Error log file."),
3211
(char**) &log_error_file_ptr, (char**) &log_error_file_ptr, 0, GET_STR,
3212
OPT_ARG, 0, 0, 0, 0, 0, 0},
3213
{"log-isam", OPT_ISAM_LOG,
3214
N_("Log all MyISAM changes to file."),
3215
(char**) &myisam_log_filename, (char**) &myisam_log_filename, 0, GET_STR,
3216
OPT_ARG, 0, 0, 0, 0, 0, 0},
3576
This option starts with "log-bin" to emphasize that it is specific of
3579
{"log-bin-trust-function-creators", OPT_LOG_BIN_TRUST_FUNCTION_CREATORS,
3580
"If equal to 0 (the default), then when --log-bin is used, creation of "
3581
"a stored function (or trigger) is allowed only to users having the SUPER privilege "
3582
"and only if this stored function (trigger) may not break binary logging."
3583
"Note that if ALL connections to this server ALWAYS use row-based binary "
3584
"logging, the security issues do not exist and the binary logging cannot "
3585
"break, so you can safely set this to 1."
3586
,(uchar**) &trust_function_creators, (uchar**) &trust_function_creators, 0,
3587
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3588
{"log-error", OPT_ERROR_LOG_FILE, "Error log file.",
3589
(uchar**) &log_error_file_ptr, (uchar**) &log_error_file_ptr, 0, GET_STR,
3590
OPT_ARG, 0, 0, 0, 0, 0, 0},
3591
{"log-isam", OPT_ISAM_LOG, "Log all MyISAM changes to file.",
3592
(uchar**) &myisam_log_filename, (uchar**) &myisam_log_filename, 0, GET_STR,
3593
OPT_ARG, 0, 0, 0, 0, 0, 0},
3594
{"log-long-format", '0',
3595
"Log some extra information to update log. Please note that this option is deprecated; see --log-short-format option.",
3596
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
3597
#ifdef WITH_CSV_STORAGE_ENGINE
3598
{"log-output", OPT_LOG_OUTPUT,
3599
"Syntax: log-output[=value[,value...]], where \"value\" could be TABLE, "
3601
(uchar**) &log_output_str, (uchar**) &log_output_str, 0,
3602
GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
3604
{"log-queries-not-using-indexes", OPT_LOG_QUERIES_NOT_USING_INDEXES,
3605
"Log queries that are executed without benefit of any index to the slow log if it is open.",
3606
(uchar**) &opt_log_queries_not_using_indexes, (uchar**) &opt_log_queries_not_using_indexes,
3607
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3608
{"log-short-format", OPT_SHORT_LOG_FORMAT,
3609
"Don't log extra information to update and slow-query logs.",
3610
(uchar**) &opt_short_log_format, (uchar**) &opt_short_log_format,
3611
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3217
3612
{"log-slave-updates", OPT_LOG_SLAVE_UPDATES,
3218
N_("Tells the slave to log the updates from the slave thread to the binary "
3219
"log. You will need to turn it on if you plan to "
3220
"daisy-chain the slaves."),
3221
(char**) &opt_log_slave_updates, (char**) &opt_log_slave_updates,
3613
"Tells the slave to log the updates from the slave thread to the binary log. You will need to turn it on if you plan to daisy-chain the slaves.",
3614
(uchar**) &opt_log_slave_updates, (uchar**) &opt_log_slave_updates, 0, GET_BOOL,
3223
3615
NO_ARG, 0, 0, 0, 0, 0, 0},
3616
{"log-slow-admin-statements", OPT_LOG_SLOW_ADMIN_STATEMENTS,
3617
"Log slow OPTIMIZE, ANALYZE, ALTER and other administrative statements to the slow log if it is open.",
3618
(uchar**) &opt_log_slow_admin_statements,
3619
(uchar**) &opt_log_slow_admin_statements,
3620
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3621
{"log-slow-slave-statements", OPT_LOG_SLOW_SLAVE_STATEMENTS,
3622
"Log slow statements executed by slave thread to the slow log if it is open.",
3623
(uchar**) &opt_log_slow_slave_statements,
3624
(uchar**) &opt_log_slow_slave_statements,
3625
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3626
{"log-slow-queries", OPT_SLOW_QUERY_LOG,
3627
"Log slow queries to a table or log file. Defaults logging to table mysql.slow_log or hostname-slow.log if --log-output=file is used. Must be enabled to activate other slow log options.",
3628
(uchar**) &opt_slow_logname, (uchar**) &opt_slow_logname, 0, GET_STR, OPT_ARG,
3224
3630
{"log-tc", OPT_LOG_TC,
3225
N_("Path to transaction coordinator log (used for transactions that affect "
3226
"more than one storage engine, when binary log is disabled)"),
3227
(char**) &opt_tc_log_file, (char**) &opt_tc_log_file, 0, GET_STR,
3631
"Path to transaction coordinator log (used for transactions that affect "
3632
"more than one storage engine, when binary log is disabled)",
3633
(uchar**) &opt_tc_log_file, (uchar**) &opt_tc_log_file, 0, GET_STR,
3228
3634
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3229
3635
#ifdef HAVE_MMAP
3230
{"log-tc-size", OPT_LOG_TC_SIZE,
3231
N_("Size of transaction coordinator log."),
3232
(char**) &opt_tc_log_size, (char**) &opt_tc_log_size, 0, GET_ULONG,
3636
{"log-tc-size", OPT_LOG_TC_SIZE, "Size of transaction coordinator log.",
3637
(uchar**) &opt_tc_log_size, (uchar**) &opt_tc_log_size, 0, GET_ULONG,
3233
3638
REQUIRED_ARG, TC_LOG_MIN_SIZE, TC_LOG_MIN_SIZE, ULONG_MAX, 0,
3234
3639
TC_LOG_PAGE_SIZE, 0},
3236
{"log-warnings", 'W',
3237
N_("Log some not critical warnings to the log file."),
3238
(char**) &global_system_variables.log_warnings,
3239
(char**) &max_system_variables.log_warnings, 0, GET_ULONG, OPT_ARG, 1, 0, 0,
3641
{"log-update", OPT_UPDATE_LOG,
3642
"The update log is deprecated since version 5.0, is replaced by the binary \
3643
log and this option justs turns on --log-bin instead.",
3644
(uchar**) &opt_update_logname, (uchar**) &opt_update_logname, 0, GET_STR,
3645
OPT_ARG, 0, 0, 0, 0, 0, 0},
3646
{"log-warnings", 'W', "Log some not critical warnings to the log file.",
3647
(uchar**) &global_system_variables.log_warnings,
3648
(uchar**) &max_system_variables.log_warnings, 0, GET_ULONG, OPT_ARG, 1, 0, 0,
3241
3650
{"low-priority-updates", OPT_LOW_PRIORITY_UPDATES,
3242
N_("INSERT/DELETE/UPDATE has lower priority than selects."),
3243
(char**) &global_system_variables.low_priority_updates,
3244
(char**) &max_system_variables.low_priority_updates,
3651
"INSERT/DELETE/UPDATE has lower priority than selects.",
3652
(uchar**) &global_system_variables.low_priority_updates,
3653
(uchar**) &max_system_variables.low_priority_updates,
3245
3654
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3246
3655
{"master-info-file", OPT_MASTER_INFO_FILE,
3247
N_("The location and name of the file that remembers the master and "
3248
"where the I/O replication thread is in the master's binlogs."),
3249
(char**) &master_info_file, (char**) &master_info_file, 0, GET_STR,
3656
"The location and name of the file that remembers the master and where the I/O replication \
3657
thread is in the master's binlogs.",
3658
(uchar**) &master_info_file, (uchar**) &master_info_file, 0, GET_STR,
3250
3659
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3251
3660
{"master-retry-count", OPT_MASTER_RETRY_COUNT,
3252
N_("The number of tries the slave will make to connect to the master "
3253
"before giving up."),
3254
(char**) &master_retry_count, (char**) &master_retry_count, 0, GET_ULONG,
3661
"The number of tries the slave will make to connect to the master before giving up.",
3662
(uchar**) &master_retry_count, (uchar**) &master_retry_count, 0, GET_ULONG,
3255
3663
REQUIRED_ARG, 3600*24, 0, 0, 0, 0, 0},
3256
3664
{"max-binlog-dump-events", OPT_MAX_BINLOG_DUMP_EVENTS,
3257
N_("Option used by mysql-test for debugging and testing of replication."),
3258
(char**) &max_binlog_dump_events, (char**) &max_binlog_dump_events, 0,
3665
"Option used by mysql-test for debugging and testing of replication.",
3666
(uchar**) &max_binlog_dump_events, (uchar**) &max_binlog_dump_events, 0,
3259
3667
GET_INT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3260
{"memlock", OPT_MEMLOCK,
3261
N_("Lock mysqld in memory."),
3262
(char**) &locked_in_memory,
3263
(char**) &locked_in_memory, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3668
{"memlock", OPT_MEMLOCK, "Lock mysqld in memory.", (uchar**) &locked_in_memory,
3669
(uchar**) &locked_in_memory, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3264
3670
{"myisam-recover", OPT_MYISAM_RECOVER,
3265
N_("Syntax: myisam-recover[=option[,option...]], where option can be "
3266
"DEFAULT, BACKUP, FORCE or QUICK."),
3267
(char**) &myisam_recover_options_str, (char**) &myisam_recover_options_str, 0,
3671
"Syntax: myisam-recover[=option[,option...]], where option can be DEFAULT, BACKUP, FORCE or QUICK.",
3672
(uchar**) &myisam_recover_options_str, (uchar**) &myisam_recover_options_str, 0,
3268
3673
GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
3270
N_("Use very new possible 'unsafe' functions."),
3271
(char**) &global_system_variables.new_mode,
3272
(char**) &max_system_variables.new_mode,
3674
{"new", 'n', "Use very new possible 'unsafe' functions.",
3675
(uchar**) &global_system_variables.new_mode,
3676
(uchar**) &max_system_variables.new_mode,
3273
3677
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3274
3678
{"old-alter-table", OPT_OLD_ALTER_TABLE,
3275
N_("Use old, non-optimized alter table."),
3276
(char**) &global_system_variables.old_alter_table,
3277
(char**) &max_system_variables.old_alter_table, 0, GET_BOOL, NO_ARG,
3279
{"pid-file", OPT_PID_FILE,
3280
N_("Pid file used by safe_mysqld."),
3281
(char**) &pidfile_name_ptr, (char**) &pidfile_name_ptr, 0, GET_STR,
3679
"Use old, non-optimized alter table.",
3680
(uchar**) &global_system_variables.old_alter_table,
3681
(uchar**) &max_system_variables.old_alter_table, 0, GET_BOOL, NO_ARG,
3683
{"old-passwords", OPT_OLD_PASSWORDS, "Use old password encryption method (needed for 4.0 and older clients).",
3684
(uchar**) &global_system_variables.old_passwords,
3685
(uchar**) &max_system_variables.old_passwords, 0, GET_BOOL, NO_ARG,
3687
{"old-style-user-limits", OPT_OLD_STYLE_USER_LIMITS,
3688
"Enable old-style user limits (before 5.0.3 user resources were counted per each user+host vs. per account)",
3689
(uchar**) &opt_old_style_user_limits, (uchar**) &opt_old_style_user_limits,
3690
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3691
{"pid-file", OPT_PID_FILE, "Pid file used by safe_mysqld.",
3692
(uchar**) &pidfile_name_ptr, (uchar**) &pidfile_name_ptr, 0, GET_STR,
3282
3693
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3284
N_("Port number to use for connection or 0 for default to, in "
3285
"order of preference, my.cnf, $DRIZZLE_TCP_PORT, "
3286
"built-in default (" STRINGIFY_ARG(DRIZZLE_PORT) ")."),
3287
(char**) &mysqld_port,
3288
(char**) &mysqld_port, 0, GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3694
{"port", 'P', "Port number to use for connection or 0 for default to, in "
3695
"order of preference, my.cnf, $MYSQL_TCP_PORT, "
3696
#if MYSQL_PORT_DEFAULT == 0
3699
"built-in default (" STRINGIFY_ARG(MYSQL_PORT) ").",
3700
(uchar**) &mysqld_port,
3701
(uchar**) &mysqld_port, 0, GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3289
3702
{"port-open-timeout", OPT_PORT_OPEN_TIMEOUT,
3290
N_("Maximum time in seconds to wait for the port to become free. "
3291
"(Default: no wait)"),
3292
(char**) &mysqld_port_timeout,
3293
(char**) &mysqld_port_timeout, 0, GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3703
"Maximum time in seconds to wait for the port to become free. "
3704
"(Default: no wait)", (uchar**) &mysqld_port_timeout,
3705
(uchar**) &mysqld_port_timeout, 0, GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3294
3706
{"relay-log", OPT_RELAY_LOG,
3295
N_("The location and name to use for relay logs."),
3296
(char**) &opt_relay_logname, (char**) &opt_relay_logname, 0,
3707
"The location and name to use for relay logs.",
3708
(uchar**) &opt_relay_logname, (uchar**) &opt_relay_logname, 0,
3297
3709
GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3298
3710
{"relay-log-index", OPT_RELAY_LOG_INDEX,
3299
N_("The location and name to use for the file that keeps a list of the "
3300
"last relay logs."),
3301
(char**) &opt_relaylog_index_name, (char**) &opt_relaylog_index_name, 0,
3711
"The location and name to use for the file that keeps a list of the last \
3713
(uchar**) &opt_relaylog_index_name, (uchar**) &opt_relaylog_index_name, 0,
3302
3714
GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3303
3715
{"relay-log-info-file", OPT_RELAY_LOG_INFO_FILE,
3304
N_("The location and name of the file that remembers where the SQL "
3305
"replication thread is in the relay logs."),
3306
(char**) &relay_log_info_file, (char**) &relay_log_info_file, 0, GET_STR,
3716
"The location and name of the file that remembers where the SQL replication \
3717
thread is in the relay logs.",
3718
(uchar**) &relay_log_info_file, (uchar**) &relay_log_info_file, 0, GET_STR,
3307
3719
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3308
3720
{"replicate-do-db", OPT_REPLICATE_DO_DB,
3309
N_("Tells the slave thread to restrict replication to the specified "
3310
"database. To specify more than one database, use the directive "
3311
"multiple times, once for each database. Note that this will only work "
3312
"if you do not use cross-database queries such as UPDATE "
3313
"some_db.some_table SET foo='bar' while having selected a different or "
3314
"no database. If you need cross database updates to work, use "
3315
"replicate-wild-do-table=db_name.%."),
3721
"Tells the slave thread to restrict replication to the specified database. To specify more than one database, use the directive multiple times, once for each database. Note that this will only work if you do not use cross-database queries such as UPDATE some_db.some_table SET foo='bar' while having selected a different or no database. If you need cross database updates to work, make sure you have 3.23.28 or later, and use replicate-wild-do-table=db_name.%.",
3316
3722
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3317
3723
{"replicate-do-table", OPT_REPLICATE_DO_TABLE,
3318
N_("Tells the slave thread to restrict replication to the specified table. "
3319
"To specify more than one table, use the directive multiple times, once "
3320
"for each table. This will work for cross-database updates, in contrast "
3321
"to replicate-do-db."),
3724
"Tells the slave thread to restrict replication to the specified table. To specify more than one table, use the directive multiple times, once for each table. This will work for cross-database updates, in contrast to replicate-do-db.",
3322
3725
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3323
3726
{"replicate-ignore-db", OPT_REPLICATE_IGNORE_DB,
3324
N_("Tells the slave thread to not replicate to the specified database. To "
3325
"specify more than one database to ignore, use the directive multiple "
3326
"times, once for each database. This option will not work if you use "
3327
"cross database updates. If you need cross database updates to work, "
3328
"use replicate-wild-ignore-table=db_name.%. "),
3727
"Tells the slave thread to not replicate to the specified database. To specify more than one database to ignore, use the directive multiple times, once for each database. This option will not work if you use cross database updates. If you need cross database updates to work, make sure you have 3.23.28 or later, and use replicate-wild-ignore-table=db_name.%. ",
3329
3728
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3330
3729
{"replicate-ignore-table", OPT_REPLICATE_IGNORE_TABLE,
3331
N_("Tells the slave thread to not replicate to the specified table. To "
3332
"specify more than one table to ignore, use the directive multiple "
3333
"times, once for each table. This will work for cross-datbase updates, "
3334
"in contrast to replicate-ignore-db."),
3730
"Tells the slave thread to not replicate to the specified table. To specify more than one table to ignore, use the directive multiple times, once for each table. This will work for cross-datbase updates, in contrast to replicate-ignore-db.",
3335
3731
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3336
3732
{"replicate-rewrite-db", OPT_REPLICATE_REWRITE_DB,
3337
N_("Updates to a database with a different name than the original. "
3338
"Example: replicate-rewrite-db=master_db_name->slave_db_name."),
3733
"Updates to a database with a different name than the original. Example: replicate-rewrite-db=master_db_name->slave_db_name.",
3339
3734
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3340
3735
{"replicate-same-server-id", OPT_REPLICATE_SAME_SERVER_ID,
3341
N_("In replication, if set to 1, do not skip events having our server id. "
3342
"Default value is 0 (to break infinite loops in circular replication). "
3343
"Can't be set to 1 if --log-slave-updates is used."),
3344
(char**) &replicate_same_server_id,
3345
(char**) &replicate_same_server_id,
3736
"In replication, if set to 1, do not skip events having our server id. \
3737
Default value is 0 (to break infinite loops in circular replication). \
3738
Can't be set to 1 if --log-slave-updates is used.",
3739
(uchar**) &replicate_same_server_id,
3740
(uchar**) &replicate_same_server_id,
3346
3741
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3347
3742
{"replicate-wild-do-table", OPT_REPLICATE_WILD_DO_TABLE,
3348
N_("Tells the slave thread to restrict replication to the tables that "
3349
"match the specified wildcard pattern. To specify more than one table, "
3350
"use the directive multiple times, once for each table. This will work "
3351
"for cross-database updates. Example: replicate-wild-do-table=foo%.bar% "
3352
"will replicate only updates to tables in all databases that start with "
3353
"foo and whose table names start with bar."),
3743
"Tells the slave thread to restrict replication to the tables that match the specified wildcard pattern. To specify more than one table, use the directive multiple times, once for each table. This will work for cross-database updates. Example: replicate-wild-do-table=foo%.bar% will replicate only updates to tables in all databases that start with foo and whose table names start with bar.",
3354
3744
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3355
3745
{"replicate-wild-ignore-table", OPT_REPLICATE_WILD_IGNORE_TABLE,
3356
N_("Tells the slave thread to not replicate to the tables that match the "
3357
"given wildcard pattern. To specify more than one table to ignore, use "
3358
"the directive multiple times, once for each table. This will work for "
3359
"cross-database updates. Example: replicate-wild-ignore-table=foo%.bar% "
3360
"will not do updates to tables in databases that start with foo and "
3361
"whose table names start with bar."),
3746
"Tells the slave thread to not replicate to the tables that match the given wildcard pattern. To specify more than one table to ignore, use the directive multiple times, once for each table. This will work for cross-database updates. Example: replicate-wild-ignore-table=foo%.bar% will not do updates to tables in databases that start with foo and whose table names start with bar.",
3362
3747
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3363
3748
// In replication, we may need to tell the other servers how to connect
3364
3749
{"report-host", OPT_REPORT_HOST,
3365
N_("Hostname or IP of the slave to be reported to to the master during "
3366
"slave registration. Will appear in the output of SHOW SLAVE HOSTS. "
3367
"Leave unset if you do not want the slave to register itself with the "
3368
"master. Note that it is not sufficient for the master to simply read "
3369
"the IP of the slave off the socket once the slave connects. Due to NAT "
3370
"and other routing issues, that IP may not be valid for connecting to "
3371
"the slave from the master or other hosts."),
3372
(char**) &report_host, (char**) &report_host, 0, GET_STR, REQUIRED_ARG, 0, 0,
3750
"Hostname or IP of the slave to be reported to to the master during slave registration. Will appear in the output of SHOW SLAVE HOSTS. Leave unset if you do not want the slave to register itself with the master. Note that it is not sufficient for the master to simply read the IP of the slave off the socket once the slave connects. Due to NAT and other routing issues, that IP may not be valid for connecting to the slave from the master or other hosts.",
3751
(uchar**) &report_host, (uchar**) &report_host, 0, GET_STR, REQUIRED_ARG, 0, 0,
3374
3753
{"report-password", OPT_REPORT_PASSWORD, "Undocumented.",
3375
(char**) &report_password, (char**) &report_password, 0, GET_STR,
3754
(uchar**) &report_password, (uchar**) &report_password, 0, GET_STR,
3376
3755
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3377
3756
{"report-port", OPT_REPORT_PORT,
3378
N_("Port for connecting to slave reported to the master during slave "
3379
"registration. Set it only if the slave is listening on a non-default "
3380
"port or if you have a special tunnel from the master or other clients "
3381
"to the slave. If not sure, leave this option unset."),
3382
(char**) &report_port, (char**) &report_port, 0, GET_UINT, REQUIRED_ARG,
3383
DRIZZLE_PORT, 0, 0, 0, 0, 0},
3384
{"safe-mode", OPT_SAFE,
3385
N_("Skip some optimize stages (for testing)."),
3757
"Port for connecting to slave reported to the master during slave registration. Set it only if the slave is listening on a non-default port or if you have a special tunnel from the master or other clients to the slave. If not sure, leave this option unset.",
3758
(uchar**) &report_port, (uchar**) &report_port, 0, GET_UINT, REQUIRED_ARG,
3759
MYSQL_PORT, 0, 0, 0, 0, 0},
3760
{"safe-mode", OPT_SAFE, "Skip some optimize stages (for testing).",
3386
3761
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
3387
3762
{"secure-file-priv", OPT_SECURE_FILE_PRIV,
3388
N_("Limit LOAD DATA, SELECT ... OUTFILE, and LOAD_FILE() to files "
3389
"within specified directory"),
3390
(char**) &opt_secure_file_priv, (char**) &opt_secure_file_priv, 0,
3763
"Limit LOAD DATA, SELECT ... OUTFILE, and LOAD_FILE() to files within specified directory",
3764
(uchar**) &opt_secure_file_priv, (uchar**) &opt_secure_file_priv, 0,
3391
3765
GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3392
3766
{"server-id", OPT_SERVER_ID,
3393
N_("Uniquely identifies the server instance in the community of "
3394
"replication partners."),
3395
(char**) &server_id, (char**) &server_id, 0, GET_ULONG, REQUIRED_ARG, 0, 0, 0,
3767
"Uniquely identifies the server instance in the community of replication partners.",
3768
(uchar**) &server_id, (uchar**) &server_id, 0, GET_ULONG, REQUIRED_ARG, 0, 0, 0,
3397
{"skip-new", OPT_SKIP_NEW,
3398
N_("Don't use new, possible wrong routines."),
3770
{"set-variable", 'O',
3771
"Change the value of a variable. Please note that this option is deprecated;you can set variables directly with --variable-name=value.",
3772
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3773
{"skip-new", OPT_SKIP_NEW, "Don't use new, possible wrong routines.",
3399
3774
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
3400
3775
{"skip-slave-start", OPT_SKIP_SLAVE_START,
3401
N_("If set, slave is not autostarted."),
3402
(char**) &opt_skip_slave_start,
3403
(char**) &opt_skip_slave_start, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3776
"If set, slave is not autostarted.", (uchar**) &opt_skip_slave_start,
3777
(uchar**) &opt_skip_slave_start, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3404
3778
{"skip-stack-trace", OPT_SKIP_STACK_TRACE,
3405
N_("Don't print a stack trace on failure."),
3406
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0,
3779
"Don't print a stack trace on failure.", 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0,
3781
{"skip-symlink", OPT_SKIP_SYMLINKS, "Don't allow symlinking of tables. Deprecated option. Use --skip-symbolic-links instead.",
3782
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
3408
3783
{"skip-thread-priority", OPT_SKIP_PRIOR,
3409
N_("Don't give threads different priorities."),
3410
0, 0, 0, GET_NO_ARG, NO_ARG,
3784
"Don't give threads different priorities.", 0, 0, 0, GET_NO_ARG, NO_ARG,
3411
3785
DEFAULT_SKIP_THREAD_PRIORITY, 0, 0, 0, 0, 0},
3412
3786
{"slave-load-tmpdir", OPT_SLAVE_LOAD_TMPDIR,
3413
N_("The location where the slave should put its temporary files when "
3414
"replicating a LOAD DATA INFILE command."),
3415
(char**) &slave_load_tmpdir, (char**) &slave_load_tmpdir, 0, GET_STR_ALLOC,
3787
"The location where the slave should put its temporary files when \
3788
replicating a LOAD DATA INFILE command.",
3789
(uchar**) &slave_load_tmpdir, (uchar**) &slave_load_tmpdir, 0, GET_STR_ALLOC,
3416
3790
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3417
3791
{"slave-skip-errors", OPT_SLAVE_SKIP_ERRORS,
3418
N_("Tells the slave thread to continue replication when a query event "
3419
"returns an error from the provided list."),
3792
"Tells the slave thread to continue replication when a query event returns an error from the provided list.",
3420
3793
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3421
3794
{"slave-exec-mode", OPT_SLAVE_EXEC_MODE,
3422
N_("Modes for how replication events should be executed. Legal values are "
3423
"STRICT (default) and IDEMPOTENT. In IDEMPOTENT mode, replication will "
3424
"not stop for operations that are idempotent. In STRICT mode, "
3425
"replication will stop on any unexpected difference between the master "
3427
(char**) &slave_exec_mode_str, (char**) &slave_exec_mode_str,
3428
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3795
"Modes for how replication events should be executed. Legal values are STRICT (default) and IDEMPOTENT. In IDEMPOTENT mode, replication will not stop for operations that are idempotent. In STRICT mode, replication will stop on any unexpected difference between the master and the slave.",
3796
(uchar**) &slave_exec_mode_str, (uchar**) &slave_exec_mode_str, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3797
{"slow-query-log", OPT_SLOW_LOG,
3798
"Enable|disable slow query log", (uchar**) &opt_slow_log,
3799
(uchar**) &opt_slow_log, 0, GET_BOOL, OPT_ARG, 0, 0, 0, 0, 0, 0},
3800
{"sporadic-binlog-dump-fail", OPT_SPORADIC_BINLOG_DUMP_FAIL,
3801
"Option used by mysql-test for debugging and testing of replication.",
3802
(uchar**) &opt_sporadic_binlog_dump_fail,
3803
(uchar**) &opt_sporadic_binlog_dump_fail, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0,
3429
3805
{"sql-bin-update-same", OPT_SQL_BIN_UPDATE_SAME,
3806
"The update log is deprecated since version 5.0, is replaced by the binary \
3807
log and this option does nothing anymore.",
3431
3808
0, 0, 0, GET_DISABLED, NO_ARG, 0, 0, 0, 0, 0, 0},
3432
{"symbolic-links", 's',
3433
N_("Enable symbolic link support."),
3434
(char**) &my_use_symdir, (char**) &my_use_symdir, 0, GET_BOOL, NO_ARG,
3809
{"symbolic-links", 's', "Enable symbolic link support.",
3810
(uchar**) &my_use_symdir, (uchar**) &my_use_symdir, 0, GET_BOOL, NO_ARG,
3436
3812
The system call realpath() produces warnings under valgrind and
3437
3813
purify. These are not suppressed: instead we disable symlinks
3440
3816
IF_PURIFY(0,1), 0, 0, 0, 0, 0},
3441
3817
{"sysdate-is-now", OPT_SYSDATE_IS_NOW,
3442
N_("Non-default option to alias SYSDATE() to NOW() to make it "
3443
"safe-replicable."),
3444
(char**) &global_system_variables.sysdate_is_now,
3818
"Non-default option to alias SYSDATE() to NOW() to make it safe-replicable. Since 5.0, SYSDATE() returns a `dynamic' value different for different invocations, even within the same statement.",
3819
(uchar**) &global_system_variables.sysdate_is_now,
3445
3820
0, 0, GET_BOOL, NO_ARG, 0, 0, 1, 0, 1, 0},
3446
3821
{"tc-heuristic-recover", OPT_TC_HEURISTIC_RECOVER,
3447
N_("Decision to use in heuristic recover process. Possible values are "
3448
"COMMIT or ROLLBACK."),
3449
(char**) &opt_tc_heuristic_recover, (char**) &opt_tc_heuristic_recover,
3822
"Decision to use in heuristic recover process. Possible values are COMMIT or ROLLBACK.",
3823
(uchar**) &opt_tc_heuristic_recover, (uchar**) &opt_tc_heuristic_recover,
3450
3824
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3451
3825
{"temp-pool", OPT_TEMP_POOL,
3452
N_("Using this option will cause most temporary files created to use a "
3453
"small set of names, rather than a unique name for each new file."),
3454
(char**) &use_temp_pool, (char**) &use_temp_pool, 0, GET_BOOL, NO_ARG, 1,
3826
"Using this option will cause most temporary files created to use a small set of names, rather than a unique name for each new file.",
3827
(uchar**) &use_temp_pool, (uchar**) &use_temp_pool, 0, GET_BOOL, NO_ARG, 1,
3455
3828
0, 0, 0, 0, 0},
3456
3829
{"timed_mutexes", OPT_TIMED_MUTEXES,
3457
N_("Specify whether to time mutexes (only InnoDB mutexes are currently "
3459
(char**) &timed_mutexes, (char**) &timed_mutexes, 0, GET_BOOL, NO_ARG, 0,
3830
"Specify whether to time mutexes (only InnoDB mutexes are currently supported)",
3831
(uchar**) &timed_mutexes, (uchar**) &timed_mutexes, 0, GET_BOOL, NO_ARG, 0,
3460
3832
0, 0, 0, 0, 0},
3461
3833
{"tmpdir", 't',
3462
N_("Path for temporary files. Several paths may be specified, separated "
3464
", in this case they are used in a round-robin fashion."),
3465
(char**) &opt_mysql_tmpdir,
3466
(char**) &opt_mysql_tmpdir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3834
"Path for temporary files. Several paths may be specified, separated by a "
3836
", in this case they are used in a round-robin fashion.",
3837
(uchar**) &opt_mysql_tmpdir,
3838
(uchar**) &opt_mysql_tmpdir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3467
3839
{"transaction-isolation", OPT_TX_ISOLATION,
3468
N_("Default transaction isolation level."),
3469
0, 0, 0, GET_STR, REQUIRED_ARG, 0,
3840
"Default transaction isolation level.", 0, 0, 0, GET_STR, REQUIRED_ARG, 0,
3470
3841
0, 0, 0, 0, 0},
3472
N_("Run mysqld daemon as user."),
3473
0, 0, 0, GET_STR, REQUIRED_ARG,
3842
{"use-symbolic-links", 's', "Enable symbolic link support. Deprecated option; use --symbolic-links instead.",
3843
(uchar**) &my_use_symdir, (uchar**) &my_use_symdir, 0, GET_BOOL, NO_ARG,
3844
IF_PURIFY(0,1), 0, 0, 0, 0, 0},
3845
{"user", 'u', "Run mysqld daemon as user.", 0, 0, 0, GET_STR, REQUIRED_ARG,
3474
3846
0, 0, 0, 0, 0, 0},
3476
N_("Output version information and exit."),
3477
0, 0, 0, GET_NO_ARG,
3847
{"verbose", 'v', "Used with --help option for detailed help",
3848
(uchar**) &opt_verbose, (uchar**) &opt_verbose, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0,
3850
{"version", 'V', "Output version information and exit.", 0, 0, 0, GET_NO_ARG,
3478
3851
NO_ARG, 0, 0, 0, 0, 0, 0},
3479
{"back_log", OPT_BACK_LOG,
3480
N_("The number of outstanding connection requests MySQL can have. This "
3481
"comes into play when the main MySQL thread gets very many connection "
3482
"requests in a very short time."),
3483
(char**) &back_log, (char**) &back_log, 0, GET_ULONG,
3852
{"warnings", 'W', "Deprecated; use --log-warnings instead.",
3853
(uchar**) &global_system_variables.log_warnings,
3854
(uchar**) &max_system_variables.log_warnings, 0, GET_ULONG, OPT_ARG,
3855
1, 0, ULONG_MAX, 0, 0, 0},
3856
{ "back_log", OPT_BACK_LOG,
3857
"The number of outstanding connection requests MySQL can have. This comes into play when the main MySQL thread gets very many connection requests in a very short time.",
3858
(uchar**) &back_log, (uchar**) &back_log, 0, GET_ULONG,
3484
3859
REQUIRED_ARG, 50, 1, 65535, 0, 1, 0 },
3485
{ "binlog_cache_size", OPT_BINLOG_CACHE_SIZE,
3486
N_("The size of the cache to hold the SQL statements for the binary log "
3487
"during a transaction. If you often use big, multi-statement "
3488
"transactions you can increase this to get more performance."),
3489
(char**) &binlog_cache_size, (char**) &binlog_cache_size, 0, GET_ULONG,
3490
REQUIRED_ARG, 32*1024L, IO_SIZE, ULONG_MAX, 0, IO_SIZE, 0},
3491
{ "bulk_insert_buffer_size", OPT_BULK_INSERT_BUFFER_SIZE,
3492
N_("Size of tree cache used in bulk insert optimisation. Note that this is "
3493
"a limit per thread!"),
3494
(char**) &global_system_variables.bulk_insert_buff_size,
3495
(char**) &max_system_variables.bulk_insert_buff_size,
3496
0, GET_ULONG, REQUIRED_ARG, 8192*1024, 0, ULONG_MAX, 0, 1, 0},
3497
{ "connect_timeout", OPT_CONNECT_TIMEOUT,
3498
N_("The number of seconds the mysqld server is waiting for a connect "
3499
"packet before responding with 'Bad handshake'."),
3500
(char**) &connect_timeout, (char**) &connect_timeout,
3501
0, GET_ULONG, REQUIRED_ARG, CONNECT_TIMEOUT, 2, LONG_TIMEOUT, 0, 1, 0 },
3860
{"binlog_cache_size", OPT_BINLOG_CACHE_SIZE,
3861
"The size of the cache to hold the SQL statements for the binary log during a transaction. If you often use big, multi-statement transactions you can increase this to get more performance.",
3862
(uchar**) &binlog_cache_size, (uchar**) &binlog_cache_size, 0, GET_ULONG,
3863
REQUIRED_ARG, 32*1024L, IO_SIZE, ULONG_MAX, 0, IO_SIZE, 0},
3864
{"bulk_insert_buffer_size", OPT_BULK_INSERT_BUFFER_SIZE,
3865
"Size of tree cache used in bulk insert optimisation. Note that this is a limit per thread!",
3866
(uchar**) &global_system_variables.bulk_insert_buff_size,
3867
(uchar**) &max_system_variables.bulk_insert_buff_size,
3868
0, GET_ULONG, REQUIRED_ARG, 8192*1024, 0, ULONG_MAX, 0, 1, 0},
3869
{"connect_timeout", OPT_CONNECT_TIMEOUT,
3870
"The number of seconds the mysqld server is waiting for a connect packet before responding with 'Bad handshake'.",
3871
(uchar**) &connect_timeout, (uchar**) &connect_timeout,
3872
0, GET_ULONG, REQUIRED_ARG, CONNECT_TIMEOUT, 2, LONG_TIMEOUT, 0, 1, 0 },
3502
3873
{ "date_format", OPT_DATE_FORMAT,
3503
N_("The DATE format (For future)."),
3504
(char**) &opt_date_time_formats[DRIZZLE_TIMESTAMP_DATE],
3505
(char**) &opt_date_time_formats[DRIZZLE_TIMESTAMP_DATE],
3874
"The DATE format (For future).",
3875
(uchar**) &opt_date_time_formats[MYSQL_TIMESTAMP_DATE],
3876
(uchar**) &opt_date_time_formats[MYSQL_TIMESTAMP_DATE],
3506
3877
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3507
3878
{ "datetime_format", OPT_DATETIME_FORMAT,
3508
N_("The DATETIME/TIMESTAMP format (for future)."),
3509
(char**) &opt_date_time_formats[DRIZZLE_TIMESTAMP_DATETIME],
3510
(char**) &opt_date_time_formats[DRIZZLE_TIMESTAMP_DATETIME],
3879
"The DATETIME/TIMESTAMP format (for future).",
3880
(uchar**) &opt_date_time_formats[MYSQL_TIMESTAMP_DATETIME],
3881
(uchar**) &opt_date_time_formats[MYSQL_TIMESTAMP_DATETIME],
3511
3882
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3512
3883
{ "default_week_format", OPT_DEFAULT_WEEK_FORMAT,
3513
N_("The default week format used by WEEK() functions."),
3514
(char**) &global_system_variables.default_week_format,
3515
(char**) &max_system_variables.default_week_format,
3884
"The default week format used by WEEK() functions.",
3885
(uchar**) &global_system_variables.default_week_format,
3886
(uchar**) &max_system_variables.default_week_format,
3516
3887
0, GET_ULONG, REQUIRED_ARG, 0, 0, 7L, 0, 1, 0},
3517
{ "div_precision_increment", OPT_DIV_PRECINCREMENT,
3518
N_("Precision of the result of '/' operator will be increased on that "
3520
(char**) &global_system_variables.div_precincrement,
3521
(char**) &max_system_variables.div_precincrement, 0, GET_ULONG,
3888
{"div_precision_increment", OPT_DIV_PRECINCREMENT,
3889
"Precision of the result of '/' operator will be increased on that value.",
3890
(uchar**) &global_system_variables.div_precincrement,
3891
(uchar**) &max_system_variables.div_precincrement, 0, GET_ULONG,
3522
3892
REQUIRED_ARG, 4, 0, DECIMAL_MAX_SCALE, 0, 0, 0},
3523
{ "expire_logs_days", OPT_EXPIRE_LOGS_DAYS,
3524
N_("If non-zero, binary logs will be purged after expire_logs_days "
3525
"days; possible purges happen at startup and at binary log rotation."),
3526
(char**) &expire_logs_days,
3527
(char**) &expire_logs_days, 0, GET_ULONG,
3528
REQUIRED_ARG, 0, 0, 99, 0, 1, 0},
3893
{"expire_logs_days", OPT_EXPIRE_LOGS_DAYS,
3894
"If non-zero, binary logs will be purged after expire_logs_days "
3895
"days; possible purges happen at startup and at binary log rotation.",
3896
(uchar**) &expire_logs_days,
3897
(uchar**) &expire_logs_days, 0, GET_ULONG,
3898
REQUIRED_ARG, 0, 0, 99, 0, 1, 0},
3899
{ "flush_time", OPT_FLUSH_TIME,
3900
"A dedicated thread is created to flush all tables at the given interval.",
3901
(uchar**) &flush_time, (uchar**) &flush_time, 0, GET_ULONG, REQUIRED_ARG,
3902
FLUSH_TIME, 0, LONG_TIMEOUT, 0, 1, 0},
3529
3903
{ "group_concat_max_len", OPT_GROUP_CONCAT_MAX_LEN,
3530
N_("The maximum length of the result of function group_concat."),
3531
(char**) &global_system_variables.group_concat_max_len,
3532
(char**) &max_system_variables.group_concat_max_len, 0, GET_ULONG,
3904
"The maximum length of the result of function group_concat.",
3905
(uchar**) &global_system_variables.group_concat_max_len,
3906
(uchar**) &max_system_variables.group_concat_max_len, 0, GET_ULONG,
3533
3907
REQUIRED_ARG, 1024, 4, ULONG_MAX, 0, 1, 0},
3534
{ "interactive_timeout", OPT_INTERACTIVE_TIMEOUT,
3535
N_("The number of seconds the server waits for activity on an interactive "
3536
"connection before closing it."),
3537
(char**) &global_system_variables.net_interactive_timeout,
3538
(char**) &max_system_variables.net_interactive_timeout, 0,
3908
{"interactive_timeout", OPT_INTERACTIVE_TIMEOUT,
3909
"The number of seconds the server waits for activity on an interactive connection before closing it.",
3910
(uchar**) &global_system_variables.net_interactive_timeout,
3911
(uchar**) &max_system_variables.net_interactive_timeout, 0,
3539
3912
GET_ULONG, REQUIRED_ARG, NET_WAIT_TIMEOUT, 1, LONG_TIMEOUT, 0, 1, 0},
3540
{ "join_buffer_size", OPT_JOIN_BUFF_SIZE,
3541
N_("The size of the buffer that is used for full joins."),
3542
(char**) &global_system_variables.join_buff_size,
3543
(char**) &max_system_variables.join_buff_size, 0, GET_ULONG,
3913
{"join_buffer_size", OPT_JOIN_BUFF_SIZE,
3914
"The size of the buffer that is used for full joins.",
3915
(uchar**) &global_system_variables.join_buff_size,
3916
(uchar**) &max_system_variables.join_buff_size, 0, GET_ULONG,
3544
3917
REQUIRED_ARG, 128*1024L, IO_SIZE*2+MALLOC_OVERHEAD, ULONG_MAX,
3545
3918
MALLOC_OVERHEAD, IO_SIZE, 0},
3546
3919
{"keep_files_on_create", OPT_KEEP_FILES_ON_CREATE,
3547
N_("Don't overwrite stale .MYD and .MYI even if no directory is specified."),
3548
(char**) &global_system_variables.keep_files_on_create,
3549
(char**) &max_system_variables.keep_files_on_create,
3920
"Don't overwrite stale .MYD and .MYI even if no directory is specified.",
3921
(uchar**) &global_system_variables.keep_files_on_create,
3922
(uchar**) &max_system_variables.keep_files_on_create,
3550
3923
0, GET_BOOL, OPT_ARG, 0, 0, 0, 0, 0, 0},
3551
3924
{"key_buffer_size", OPT_KEY_BUFFER_SIZE,
3552
N_("The size of the buffer used for index blocks for MyISAM tables. "
3553
"Increase this to get better index handling (for all reads and multiple "
3554
"writes) to as much as you can afford;"),
3555
(char**) &dflt_key_cache_var.param_buff_size,
3925
"The size of the buffer used for index blocks for MyISAM tables. Increase this to get better index handling (for all reads and multiple writes) to as much as you can afford; 64M on a 256M machine that mainly runs MySQL is quite common.",
3926
(uchar**) &dflt_key_cache_var.param_buff_size,
3557
3928
0, (GET_ULL | GET_ASK_ADDR),
3558
3929
REQUIRED_ARG, KEY_CACHE_SIZE, MALLOC_OVERHEAD, SIZE_T_MAX, MALLOC_OVERHEAD,
3560
3931
{"key_cache_age_threshold", OPT_KEY_CACHE_AGE_THRESHOLD,
3561
N_("This characterizes the number of hits a hot block has to be untouched "
3562
"until it is considered aged enough to be downgraded to a warm block. "
3563
"This specifies the percentage ratio of that number of hits to the "
3564
"total number of blocks in key cache"),
3565
(char**) &dflt_key_cache_var.param_age_threshold,
3567
0, (GET_ULONG | GET_ASK_ADDR), REQUIRED_ARG,
3932
"This characterizes the number of hits a hot block has to be untouched until it is considered aged enough to be downgraded to a warm block. This specifies the percentage ratio of that number of hits to the total number of blocks in key cache",
3933
(uchar**) &dflt_key_cache_var.param_age_threshold,
3935
0, (GET_ULONG | GET_ASK_ADDR), REQUIRED_ARG,
3568
3936
300, 100, ULONG_MAX, 0, 100, 0},
3569
3937
{"key_cache_block_size", OPT_KEY_CACHE_BLOCK_SIZE,
3570
N_("The default size of key cache blocks"),
3571
(char**) &dflt_key_cache_var.param_block_size,
3938
"The default size of key cache blocks",
3939
(uchar**) &dflt_key_cache_var.param_block_size,
3573
3941
0, (GET_ULONG | GET_ASK_ADDR), REQUIRED_ARG,
3574
3942
KEY_CACHE_BLOCK_SIZE, 512, 1024 * 16, 0, 512, 0},
3575
3943
{"key_cache_division_limit", OPT_KEY_CACHE_DIVISION_LIMIT,
3576
N_("The minimum percentage of warm blocks in key cache"),
3577
(char**) &dflt_key_cache_var.param_division_limit,
3944
"The minimum percentage of warm blocks in key cache",
3945
(uchar**) &dflt_key_cache_var.param_division_limit,
3579
3947
0, (GET_ULONG | GET_ASK_ADDR) , REQUIRED_ARG, 100,
3580
3948
1, 100, 0, 1, 0},
3581
3949
{"long_query_time", OPT_LONG_QUERY_TIME,
3582
N_("Log all queries that have taken more than long_query_time seconds to "
3583
"execute to file. The argument will be treated as a decimal value with "
3584
"microsecond precission."),
3585
(char**) &long_query_time, (char**) &long_query_time, 0, GET_DOUBLE,
3950
"Log all queries that have taken more than long_query_time seconds to execute to file. "
3951
"The argument will be treated as a decimal value with microsecond precission.",
3952
(uchar**) &long_query_time, (uchar**) &long_query_time, 0, GET_DOUBLE,
3586
3953
REQUIRED_ARG, 10, 0, LONG_TIMEOUT, 0, 0, 0},
3954
{"lower_case_table_names", OPT_LOWER_CASE_TABLE_NAMES,
3955
"If set to 1 table names are stored in lowercase on disk and table names will be case-insensitive. Should be set to 2 if you are using a case insensitive file system",
3956
(uchar**) &lower_case_table_names,
3957
(uchar**) &lower_case_table_names, 0, GET_UINT, OPT_ARG,
3958
#ifdef FN_NO_CASE_SENCE
3587
3964
{"max_allowed_packet", OPT_MAX_ALLOWED_PACKET,
3588
N_("Max packetlength to send/receive from to server."),
3589
(char**) &global_system_variables.max_allowed_packet,
3590
(char**) &max_system_variables.max_allowed_packet, 0, GET_ULONG,
3965
"Max packetlength to send/receive from to server.",
3966
(uchar**) &global_system_variables.max_allowed_packet,
3967
(uchar**) &max_system_variables.max_allowed_packet, 0, GET_ULONG,
3591
3968
REQUIRED_ARG, 1024*1024L, 1024, 1024L*1024L*1024L, MALLOC_OVERHEAD, 1024, 0},
3592
3969
{"max_binlog_cache_size", OPT_MAX_BINLOG_CACHE_SIZE,
3593
N_("Can be used to restrict the total size used to cache a "
3594
"multi-transaction query."),
3595
(char**) &max_binlog_cache_size, (char**) &max_binlog_cache_size, 0,
3970
"Can be used to restrict the total size used to cache a multi-transaction query.",
3971
(uchar**) &max_binlog_cache_size, (uchar**) &max_binlog_cache_size, 0,
3596
3972
GET_ULONG, REQUIRED_ARG, ULONG_MAX, IO_SIZE, ULONG_MAX, 0, IO_SIZE, 0},
3597
3973
{"max_binlog_size", OPT_MAX_BINLOG_SIZE,
3598
N_("Binary log will be rotated automatically when the size exceeds this "
3599
"value. Will also apply to relay logs if max_relay_log_size is 0. "
3600
"The minimum value for this variable is 4096."),
3601
(char**) &max_binlog_size, (char**) &max_binlog_size, 0, GET_ULONG,
3974
"Binary log will be rotated automatically when the size exceeds this \
3975
value. Will also apply to relay logs if max_relay_log_size is 0. \
3976
The minimum value for this variable is 4096.",
3977
(uchar**) &max_binlog_size, (uchar**) &max_binlog_size, 0, GET_ULONG,
3602
3978
REQUIRED_ARG, 1024*1024L*1024L, IO_SIZE, 1024*1024L*1024L, 0, IO_SIZE, 0},
3603
3979
{"max_connect_errors", OPT_MAX_CONNECT_ERRORS,
3604
N_("If there is more than this number of interrupted connections from a "
3605
"host this host will be blocked from further connections."),
3606
(char**) &max_connect_errors, (char**) &max_connect_errors, 0, GET_ULONG,
3607
REQUIRED_ARG, MAX_CONNECT_ERRORS, 1, ULONG_MAX, 0, 1, 0},
3980
"If there is more than this number of interrupted connections from a host this host will be blocked from further connections.",
3981
(uchar**) &max_connect_errors, (uchar**) &max_connect_errors, 0, GET_ULONG,
3982
REQUIRED_ARG, MAX_CONNECT_ERRORS, 1, ULONG_MAX, 0, 1, 0},
3608
3983
// Default max_connections of 151 is larger than Apache's default max
3609
3984
// children, to avoid "too many connections" error in a common setup
3610
3985
{"max_connections", OPT_MAX_CONNECTIONS,
3611
N_("The number of simultaneous clients allowed."),
3612
(char**) &max_connections,
3613
(char**) &max_connections, 0, GET_ULONG, REQUIRED_ARG, 151, 1, 100000, 0, 1,
3986
"The number of simultaneous clients allowed.", (uchar**) &max_connections,
3987
(uchar**) &max_connections, 0, GET_ULONG, REQUIRED_ARG, 151, 1, 100000, 0, 1,
3615
3989
{"max_error_count", OPT_MAX_ERROR_COUNT,
3616
N_("Max number of errors/warnings to store for a statement."),
3617
(char**) &global_system_variables.max_error_count,
3618
(char**) &max_system_variables.max_error_count,
3990
"Max number of errors/warnings to store for a statement.",
3991
(uchar**) &global_system_variables.max_error_count,
3992
(uchar**) &max_system_variables.max_error_count,
3619
3993
0, GET_ULONG, REQUIRED_ARG, DEFAULT_ERROR_COUNT, 0, 65535, 0, 1, 0},
3620
3994
{"max_heap_table_size", OPT_MAX_HEP_TABLE_SIZE,
3621
N_("Don't allow creation of heap tables bigger than this."),
3622
(char**) &global_system_variables.max_heap_table_size,
3623
(char**) &max_system_variables.max_heap_table_size, 0, GET_ULL,
3995
"Don't allow creation of heap tables bigger than this.",
3996
(uchar**) &global_system_variables.max_heap_table_size,
3997
(uchar**) &max_system_variables.max_heap_table_size, 0, GET_ULL,
3624
3998
REQUIRED_ARG, 16*1024*1024L, 16384, MAX_MEM_TABLE_SIZE,
3625
3999
MALLOC_OVERHEAD, 1024, 0},
3626
4000
{"max_join_size", OPT_MAX_JOIN_SIZE,
3627
N_("Joins that are probably going to read more than max_join_size records "
3628
"return an error."),
3629
(char**) &global_system_variables.max_join_size,
3630
(char**) &max_system_variables.max_join_size, 0, GET_HA_ROWS, REQUIRED_ARG,
3631
INT32_MAX, 1, INT32_MAX, 0, 1, 0},
3632
{"max_length_for_sort_data", OPT_MAX_LENGTH_FOR_SORT_DATA,
3633
N_("Max number of bytes in sorted records."),
3634
(char**) &global_system_variables.max_length_for_sort_data,
3635
(char**) &max_system_variables.max_length_for_sort_data, 0, GET_ULONG,
3636
REQUIRED_ARG, 1024, 4, 8192*1024L, 0, 1, 0},
4001
"Joins that are probably going to read more than max_join_size records return an error.",
4002
(uchar**) &global_system_variables.max_join_size,
4003
(uchar**) &max_system_variables.max_join_size, 0, GET_HA_ROWS, REQUIRED_ARG,
4004
~0L, 1, ~0L, 0, 1, 0},
4005
{"max_length_for_sort_data", OPT_MAX_LENGTH_FOR_SORT_DATA,
4006
"Max number of bytes in sorted records.",
4007
(uchar**) &global_system_variables.max_length_for_sort_data,
4008
(uchar**) &max_system_variables.max_length_for_sort_data, 0, GET_ULONG,
4009
REQUIRED_ARG, 1024, 4, 8192*1024L, 0, 1, 0},
3637
4010
{"max_relay_log_size", OPT_MAX_RELAY_LOG_SIZE,
3638
N_("If non-zero: relay log will be rotated automatically when the size "
3639
"exceeds this value; if zero (the default): when the size exceeds "
3640
"max_binlog_size. 0 excepted, the minimum value for this variable "
3642
(char**) &max_relay_log_size, (char**) &max_relay_log_size, 0, GET_ULONG,
4011
"If non-zero: relay log will be rotated automatically when the size exceeds this value; if zero (the default): when the size exceeds max_binlog_size. 0 excepted, the minimum value for this variable is 4096.",
4012
(uchar**) &max_relay_log_size, (uchar**) &max_relay_log_size, 0, GET_ULONG,
3643
4013
REQUIRED_ARG, 0L, 0L, 1024*1024L*1024L, 0, IO_SIZE, 0},
3644
4014
{ "max_seeks_for_key", OPT_MAX_SEEKS_FOR_KEY,
3645
N_("Limit assumed max number of seeks when looking up rows based on a key"),
3646
(char**) &global_system_variables.max_seeks_for_key,
3647
(char**) &max_system_variables.max_seeks_for_key, 0, GET_ULONG,
4015
"Limit assumed max number of seeks when looking up rows based on a key",
4016
(uchar**) &global_system_variables.max_seeks_for_key,
4017
(uchar**) &max_system_variables.max_seeks_for_key, 0, GET_ULONG,
3648
4018
REQUIRED_ARG, ULONG_MAX, 1, ULONG_MAX, 0, 1, 0 },
3649
4019
{"max_sort_length", OPT_MAX_SORT_LENGTH,
3650
N_("The number of bytes to use when sorting BLOB or TEXT values "
3651
"(only the first max_sort_length bytes of each value are used; the "
3652
"rest are ignored)."),
3653
(char**) &global_system_variables.max_sort_length,
3654
(char**) &max_system_variables.max_sort_length, 0, GET_ULONG,
4020
"The number of bytes to use when sorting BLOB or TEXT values (only the first max_sort_length bytes of each value are used; the rest are ignored).",
4021
(uchar**) &global_system_variables.max_sort_length,
4022
(uchar**) &max_system_variables.max_sort_length, 0, GET_ULONG,
3655
4023
REQUIRED_ARG, 1024, 4, 8192*1024L, 0, 1, 0},
3656
4024
{"max_tmp_tables", OPT_MAX_TMP_TABLES,
3657
N_("Maximum number of temporary tables a client can keep open at a time."),
3658
(char**) &global_system_variables.max_tmp_tables,
3659
(char**) &max_system_variables.max_tmp_tables, 0, GET_ULONG,
4025
"Maximum number of temporary tables a client can keep open at a time.",
4026
(uchar**) &global_system_variables.max_tmp_tables,
4027
(uchar**) &max_system_variables.max_tmp_tables, 0, GET_ULONG,
3660
4028
REQUIRED_ARG, 32, 1, ULONG_MAX, 0, 1, 0},
3661
4029
{"max_write_lock_count", OPT_MAX_WRITE_LOCK_COUNT,
3662
N_("After this many write locks, allow some read locks to run in between."),
3663
(char**) &max_write_lock_count, (char**) &max_write_lock_count, 0, GET_ULONG,
4030
"After this many write locks, allow some read locks to run in between.",
4031
(uchar**) &max_write_lock_count, (uchar**) &max_write_lock_count, 0, GET_ULONG,
3664
4032
REQUIRED_ARG, ULONG_MAX, 1, ULONG_MAX, 0, 1, 0},
3665
4033
{"min_examined_row_limit", OPT_MIN_EXAMINED_ROW_LIMIT,
3666
N_("Don't log queries which examine less than min_examined_row_limit "
3668
(char**) &global_system_variables.min_examined_row_limit,
3669
(char**) &max_system_variables.min_examined_row_limit, 0, GET_ULONG,
3670
REQUIRED_ARG, 0, 0, ULONG_MAX, 0, 1L, 0},
4034
"Don't log queries which examine less than min_examined_row_limit rows to file.",
4035
(uchar**) &global_system_variables.min_examined_row_limit,
4036
(uchar**) &max_system_variables.min_examined_row_limit, 0, GET_ULONG,
4037
REQUIRED_ARG, 0, 0, ULONG_MAX, 0, 1L, 0},
3671
4038
{"myisam_block_size", OPT_MYISAM_BLOCK_SIZE,
3672
N_("Block size to be used for MyISAM index pages."),
3673
(char**) &opt_myisam_block_size,
3674
(char**) &opt_myisam_block_size, 0, GET_ULONG, REQUIRED_ARG,
4039
"Block size to be used for MyISAM index pages.",
4040
(uchar**) &opt_myisam_block_size,
4041
(uchar**) &opt_myisam_block_size, 0, GET_ULONG, REQUIRED_ARG,
3675
4042
MI_KEY_BLOCK_LENGTH, MI_MIN_KEY_BLOCK_LENGTH, MI_MAX_KEY_BLOCK_LENGTH,
3676
4043
0, MI_MIN_KEY_BLOCK_LENGTH, 0},
3677
4044
{"myisam_data_pointer_size", OPT_MYISAM_DATA_POINTER_SIZE,
3678
N_("Default pointer size to be used for MyISAM tables."),
3679
(char**) &myisam_data_pointer_size,
3680
(char**) &myisam_data_pointer_size, 0, GET_ULONG, REQUIRED_ARG,
4045
"Default pointer size to be used for MyISAM tables.",
4046
(uchar**) &myisam_data_pointer_size,
4047
(uchar**) &myisam_data_pointer_size, 0, GET_ULONG, REQUIRED_ARG,
3681
4048
6, 2, 7, 0, 1, 0},
4049
{"myisam_max_extra_sort_file_size", OPT_MYISAM_MAX_EXTRA_SORT_FILE_SIZE,
4050
"Deprecated option",
4051
(uchar**) &global_system_variables.myisam_max_extra_sort_file_size,
4052
(uchar**) &max_system_variables.myisam_max_extra_sort_file_size,
4053
0, GET_ULL, REQUIRED_ARG, (ulonglong) MI_MAX_TEMP_LENGTH,
4054
0, (ulonglong) MAX_FILE_SIZE, 0, 1, 0},
3682
4055
{"myisam_max_sort_file_size", OPT_MYISAM_MAX_SORT_FILE_SIZE,
3683
N_("Don't use the fast sort index method to created index if the "
3684
"temporary file would get bigger than this."),
3685
(char**) &global_system_variables.myisam_max_sort_file_size,
3686
(char**) &max_system_variables.myisam_max_sort_file_size, 0,
3687
GET_ULL, REQUIRED_ARG, (int64_t) LONG_MAX, 0, (uint64_t) MAX_FILE_SIZE,
4056
"Don't use the fast sort index method to created index if the temporary file would get bigger than this.",
4057
(uchar**) &global_system_variables.myisam_max_sort_file_size,
4058
(uchar**) &max_system_variables.myisam_max_sort_file_size, 0,
4059
GET_ULL, REQUIRED_ARG, (longlong) LONG_MAX, 0, (ulonglong) MAX_FILE_SIZE,
3688
4060
0, 1024*1024, 0},
3689
4061
{"myisam_repair_threads", OPT_MYISAM_REPAIR_THREADS,
3690
N_("Number of threads to use when repairing MyISAM tables. The value of "
3691
"1 disables parallel repair."),
3692
(char**) &global_system_variables.myisam_repair_threads,
3693
(char**) &max_system_variables.myisam_repair_threads, 0,
4062
"Number of threads to use when repairing MyISAM tables. The value of 1 disables parallel repair.",
4063
(uchar**) &global_system_variables.myisam_repair_threads,
4064
(uchar**) &max_system_variables.myisam_repair_threads, 0,
3694
4065
GET_ULONG, REQUIRED_ARG, 1, 1, ULONG_MAX, 0, 1, 0},
3695
4066
{"myisam_sort_buffer_size", OPT_MYISAM_SORT_BUFFER_SIZE,
3696
N_("The buffer that is allocated when sorting the index when doing a "
3697
"REPAIR or when creating indexes with CREATE INDEX or ALTER TABLE."),
3698
(char**) &global_system_variables.myisam_sort_buff_size,
3699
(char**) &max_system_variables.myisam_sort_buff_size, 0,
3700
GET_ULONG, REQUIRED_ARG, 8192*1024, 4, INT32_MAX, 0, 1, 0},
4067
"The buffer that is allocated when sorting the index when doing a REPAIR or when creating indexes with CREATE INDEX or ALTER TABLE.",
4068
(uchar**) &global_system_variables.myisam_sort_buff_size,
4069
(uchar**) &max_system_variables.myisam_sort_buff_size, 0,
4070
GET_ULONG, REQUIRED_ARG, 8192*1024, 4, ~0L, 0, 1, 0},
3701
4071
{"myisam_stats_method", OPT_MYISAM_STATS_METHOD,
3702
N_("Specifies how MyISAM index statistics collection code should threat "
3703
"NULLs. Possible values of name are 'nulls_unequal' "
3704
"(default behavior), "
3705
"'nulls_equal' (emulate MySQL 4.0 behavior), and 'nulls_ignored'."),
3706
(char**) &myisam_stats_method_str, (char**) &myisam_stats_method_str, 0,
4072
"Specifies how MyISAM index statistics collection code should threat NULLs. "
4073
"Possible values of name are \"nulls_unequal\" (default behavior for 4.1/5.0), "
4074
"\"nulls_equal\" (emulate 4.0 behavior), and \"nulls_ignored\".",
4075
(uchar**) &myisam_stats_method_str, (uchar**) &myisam_stats_method_str, 0,
3707
4076
GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3708
4077
{"net_buffer_length", OPT_NET_BUFFER_LENGTH,
3709
N_("Buffer length for TCP/IP and socket communication."),
3710
(char**) &global_system_variables.net_buffer_length,
3711
(char**) &max_system_variables.net_buffer_length, 0, GET_ULONG,
4078
"Buffer length for TCP/IP and socket communication.",
4079
(uchar**) &global_system_variables.net_buffer_length,
4080
(uchar**) &max_system_variables.net_buffer_length, 0, GET_ULONG,
3712
4081
REQUIRED_ARG, 16384, 1024, 1024*1024L, 0, 1024, 0},
3713
4082
{"net_read_timeout", OPT_NET_READ_TIMEOUT,
3714
N_("Number of seconds to wait for more data from a connection before "
3715
"aborting the read."),
3716
(char**) &global_system_variables.net_read_timeout,
3717
(char**) &max_system_variables.net_read_timeout, 0, GET_ULONG,
4083
"Number of seconds to wait for more data from a connection before aborting the read.",
4084
(uchar**) &global_system_variables.net_read_timeout,
4085
(uchar**) &max_system_variables.net_read_timeout, 0, GET_ULONG,
3718
4086
REQUIRED_ARG, NET_READ_TIMEOUT, 1, LONG_TIMEOUT, 0, 1, 0},
3719
4087
{"net_retry_count", OPT_NET_RETRY_COUNT,
3720
N_("If a read on a communication port is interrupted, retry this many "
3721
"times before giving up."),
3722
(char**) &global_system_variables.net_retry_count,
3723
(char**) &max_system_variables.net_retry_count,0,
4088
"If a read on a communication port is interrupted, retry this many times before giving up.",
4089
(uchar**) &global_system_variables.net_retry_count,
4090
(uchar**) &max_system_variables.net_retry_count,0,
3724
4091
GET_ULONG, REQUIRED_ARG, MYSQLD_NET_RETRY_COUNT, 1, ULONG_MAX, 0, 1, 0},
3725
4092
{"net_write_timeout", OPT_NET_WRITE_TIMEOUT,
3726
N_("Number of seconds to wait for a block to be written to a connection "
3727
"before aborting the write."),
3728
(char**) &global_system_variables.net_write_timeout,
3729
(char**) &max_system_variables.net_write_timeout, 0, GET_ULONG,
4093
"Number of seconds to wait for a block to be written to a connection before aborting the write.",
4094
(uchar**) &global_system_variables.net_write_timeout,
4095
(uchar**) &max_system_variables.net_write_timeout, 0, GET_ULONG,
3730
4096
REQUIRED_ARG, NET_WRITE_TIMEOUT, 1, LONG_TIMEOUT, 0, 1, 0},
3731
{ "old", OPT_OLD_MODE,
3732
N_("Use compatible behavior."),
3733
(char**) &global_system_variables.old_mode,
3734
(char**) &max_system_variables.old_mode, 0, GET_BOOL, NO_ARG,
4097
{ "old", OPT_OLD_MODE, "Use compatible behavior.",
4098
(uchar**) &global_system_variables.old_mode,
4099
(uchar**) &max_system_variables.old_mode, 0, GET_BOOL, NO_ARG,
3735
4100
0, 0, 0, 0, 0, 0},
3736
4101
{"open_files_limit", OPT_OPEN_FILES_LIMIT,
3737
N_("If this is not 0, then mysqld will use this value to reserve file "
3738
"descriptors to use with setrlimit(). If this value is 0 then mysqld "
3739
"will reserve max_connections*5 or max_connections + table_cache*2 "
3740
"(whichever is larger) number of files."),
3741
(char**) &open_files_limit, (char**) &open_files_limit, 0, GET_ULONG,
4102
"If this is not 0, then mysqld will use this value to reserve file descriptors to use with setrlimit(). If this value is 0 then mysqld will reserve max_connections*5 or max_connections + table_cache*2 (whichever is larger) number of files.",
4103
(uchar**) &open_files_limit, (uchar**) &open_files_limit, 0, GET_ULONG,
3742
4104
REQUIRED_ARG, 0, 0, OS_FILE_LIMIT, 0, 1, 0},
3743
4105
{"optimizer_prune_level", OPT_OPTIMIZER_PRUNE_LEVEL,
3744
N_("Controls the heuristic(s) applied during query optimization to prune "
3745
"less-promising partial plans from the optimizer search space. Meaning: "
3746
"0 - do not apply any heuristic, thus perform exhaustive search; "
3747
"1 - prune plans based on number of retrieved rows."),
3748
(char**) &global_system_variables.optimizer_prune_level,
3749
(char**) &max_system_variables.optimizer_prune_level,
4106
"Controls the heuristic(s) applied during query optimization to prune less-promising partial plans from the optimizer search space. Meaning: 0 - do not apply any heuristic, thus perform exhaustive search; 1 - prune plans based on number of retrieved rows.",
4107
(uchar**) &global_system_variables.optimizer_prune_level,
4108
(uchar**) &max_system_variables.optimizer_prune_level,
3750
4109
0, GET_ULONG, OPT_ARG, 1, 0, 1, 0, 1, 0},
3751
4110
{"optimizer_search_depth", OPT_OPTIMIZER_SEARCH_DEPTH,
3752
N_("Maximum depth of search performed by the query optimizer. Values "
3753
"larger than the number of relations in a query result in better query "
3754
"plans, but take longer to compile a query. Smaller values than the "
3755
"number of tables in a relation result in faster optimization, but may "
3756
"produce very bad query plans. If set to 0, the system will "
3757
"automatically pick a reasonable value; if set to MAX_TABLES+2, the "
3758
"optimizer will switch to the original find_best (used for "
3759
"testing/comparison)."),
3760
(char**) &global_system_variables.optimizer_search_depth,
3761
(char**) &max_system_variables.optimizer_search_depth,
4111
"Maximum depth of search performed by the query optimizer. Values larger than the number of relations in a query result in better query plans, but take longer to compile a query. Smaller values than the number of tables in a relation result in faster optimization, but may produce very bad query plans. If set to 0, the system will automatically pick a reasonable value; if set to MAX_TABLES+2, the optimizer will switch to the original find_best (used for testing/comparison).",
4112
(uchar**) &global_system_variables.optimizer_search_depth,
4113
(uchar**) &max_system_variables.optimizer_search_depth,
3762
4114
0, GET_ULONG, OPT_ARG, MAX_TABLES+1, 0, MAX_TABLES+2, 0, 1, 0},
3763
4115
{"plugin_dir", OPT_PLUGIN_DIR,
3764
N_("Directory for plugins."),
3765
(char**) &opt_plugin_dir_ptr, (char**) &opt_plugin_dir_ptr, 0,
4116
"Directory for plugins.",
4117
(uchar**) &opt_plugin_dir_ptr, (uchar**) &opt_plugin_dir_ptr, 0,
3766
4118
GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3767
4119
{"plugin_load", OPT_PLUGIN_LOAD,
3768
N_("Optional comma separated list of plugins to load, where each plugin is "
3769
"identified by the name of the shared library. "
3770
"[for example: --plugin_load=libmd5udf.so]"),
3771
(char**) &opt_plugin_load, (char**) &opt_plugin_load, 0,
4120
"Optional colon separated list of plugins to load, where each plugin is "
4121
"identified by name and path to library seperated by an equals.",
4122
(uchar**) &opt_plugin_load, (uchar**) &opt_plugin_load, 0,
3772
4123
GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3773
4124
{"preload_buffer_size", OPT_PRELOAD_BUFFER_SIZE,
3774
N_("The size of the buffer that is allocated when preloading indexes"),
3775
(char**) &global_system_variables.preload_buff_size,
3776
(char**) &max_system_variables.preload_buff_size, 0, GET_ULONG,
4125
"The size of the buffer that is allocated when preloading indexes",
4126
(uchar**) &global_system_variables.preload_buff_size,
4127
(uchar**) &max_system_variables.preload_buff_size, 0, GET_ULONG,
3777
4128
REQUIRED_ARG, 32*1024L, 1024, 1024*1024*1024L, 0, 1, 0},
3778
4129
{"query_alloc_block_size", OPT_QUERY_ALLOC_BLOCK_SIZE,
3779
N_("Allocation block size for query parsing and execution"),
3780
(char**) &global_system_variables.query_alloc_block_size,
3781
(char**) &max_system_variables.query_alloc_block_size, 0, GET_ULONG,
4130
"Allocation block size for query parsing and execution",
4131
(uchar**) &global_system_variables.query_alloc_block_size,
4132
(uchar**) &max_system_variables.query_alloc_block_size, 0, GET_ULONG,
3782
4133
REQUIRED_ARG, QUERY_ALLOC_BLOCK_SIZE, 1024, ULONG_MAX, 0, 1024, 0},
3783
4134
{"query_prealloc_size", OPT_QUERY_PREALLOC_SIZE,
3784
N_("Persistent buffer for query parsing and execution"),
3785
(char**) &global_system_variables.query_prealloc_size,
3786
(char**) &max_system_variables.query_prealloc_size, 0, GET_ULONG,
4135
"Persistent buffer for query parsing and execution",
4136
(uchar**) &global_system_variables.query_prealloc_size,
4137
(uchar**) &max_system_variables.query_prealloc_size, 0, GET_ULONG,
3787
4138
REQUIRED_ARG, QUERY_ALLOC_PREALLOC_SIZE, QUERY_ALLOC_PREALLOC_SIZE,
3788
4139
ULONG_MAX, 0, 1024, 0},
3789
4140
{"range_alloc_block_size", OPT_RANGE_ALLOC_BLOCK_SIZE,
3790
N_("Allocation block size for storing ranges during optimization"),
3791
(char**) &global_system_variables.range_alloc_block_size,
3792
(char**) &max_system_variables.range_alloc_block_size, 0, GET_ULONG,
4141
"Allocation block size for storing ranges during optimization",
4142
(uchar**) &global_system_variables.range_alloc_block_size,
4143
(uchar**) &max_system_variables.range_alloc_block_size, 0, GET_ULONG,
3793
4144
REQUIRED_ARG, RANGE_ALLOC_BLOCK_SIZE, RANGE_ALLOC_BLOCK_SIZE, ULONG_MAX,
3795
4146
{"read_buffer_size", OPT_RECORD_BUFFER,
3796
N_("Each thread that does a sequential scan allocates a buffer of this "
3797
"size for each table it scans. If you do many sequential scans, you may "
3798
"want to increase this value."),
3799
(char**) &global_system_variables.read_buff_size,
3800
(char**) &max_system_variables.read_buff_size,0, GET_ULONG, REQUIRED_ARG,
3801
128*1024L, IO_SIZE*2+MALLOC_OVERHEAD, INT32_MAX, MALLOC_OVERHEAD, IO_SIZE,
4147
"Each thread that does a sequential scan allocates a buffer of this size for each table it scans. If you do many sequential scans, you may want to increase this value.",
4148
(uchar**) &global_system_variables.read_buff_size,
4149
(uchar**) &max_system_variables.read_buff_size,0, GET_ULONG, REQUIRED_ARG,
4150
128*1024L, IO_SIZE*2+MALLOC_OVERHEAD, INT_MAX32, MALLOC_OVERHEAD, IO_SIZE,
3803
4152
{"read_only", OPT_READONLY,
3804
N_("Make all non-temporary tables read-only, with the exception for "
3805
"replication (slave) threads and users with the SUPER privilege"),
3806
(char**) &opt_readonly,
3807
(char**) &opt_readonly,
4153
"Make all non-temporary tables read-only, with the exception for replication (slave) threads and users with the SUPER privilege",
4154
(uchar**) &opt_readonly,
4155
(uchar**) &opt_readonly,
3808
4156
0, GET_BOOL, NO_ARG, 0, 0, 1, 0, 1, 0},
3809
4157
{"read_rnd_buffer_size", OPT_RECORD_RND_BUFFER,
3810
N_("When reading rows in sorted order after a sort, the rows are read "
3811
"through this buffer to avoid a disk seeks. If not set, then it's set "
3812
"to the value of record_buffer."),
3813
(char**) &global_system_variables.read_rnd_buff_size,
3814
(char**) &max_system_variables.read_rnd_buff_size, 0,
4158
"When reading rows in sorted order after a sort, the rows are read through this buffer to avoid a disk seeks. If not set, then it's set to the value of record_buffer.",
4159
(uchar**) &global_system_variables.read_rnd_buff_size,
4160
(uchar**) &max_system_variables.read_rnd_buff_size, 0,
3815
4161
GET_ULONG, REQUIRED_ARG, 256*1024L, 64 /*IO_SIZE*2+MALLOC_OVERHEAD*/ ,
3816
INT32_MAX, MALLOC_OVERHEAD, 1 /* Small lower limit to be able to test MRR */, 0},
4162
INT_MAX32, MALLOC_OVERHEAD, 1 /* Small lower limit to be able to test MRR */, 0},
3817
4163
{"record_buffer", OPT_RECORD_BUFFER,
3818
4164
"Alias for read_buffer_size",
3819
(char**) &global_system_variables.read_buff_size,
3820
(char**) &max_system_variables.read_buff_size,0, GET_ULONG, REQUIRED_ARG,
3821
128*1024L, IO_SIZE*2+MALLOC_OVERHEAD,
3822
INT32_MAX, MALLOC_OVERHEAD, IO_SIZE, 0},
4165
(uchar**) &global_system_variables.read_buff_size,
4166
(uchar**) &max_system_variables.read_buff_size,0, GET_ULONG, REQUIRED_ARG,
4167
128*1024L, IO_SIZE*2+MALLOC_OVERHEAD, INT_MAX32, MALLOC_OVERHEAD, IO_SIZE, 0},
3823
4168
{"relay_log_purge", OPT_RELAY_LOG_PURGE,
3824
N_("0 = do not purge relay logs. "
3825
"1 = purge them as soon as they are no more needed."),
3826
(char**) &relay_log_purge,
3827
(char**) &relay_log_purge, 0, GET_BOOL, NO_ARG,
4169
"0 = do not purge relay logs. 1 = purge them as soon as they are no more needed.",
4170
(uchar**) &relay_log_purge,
4171
(uchar**) &relay_log_purge, 0, GET_BOOL, NO_ARG,
3828
4172
1, 0, 1, 0, 1, 0},
3829
4173
{"relay_log_space_limit", OPT_RELAY_LOG_SPACE_LIMIT,
3830
N_("Maximum space to use for all relay logs."),
3831
(char**) &relay_log_space_limit,
3832
(char**) &relay_log_space_limit, 0, GET_ULL, REQUIRED_ARG, 0L, 0L,
3833
(int64_t) ULONG_MAX, 0, 1, 0},
4174
"Maximum space to use for all relay logs.",
4175
(uchar**) &relay_log_space_limit,
4176
(uchar**) &relay_log_space_limit, 0, GET_ULL, REQUIRED_ARG, 0L, 0L,
4177
(longlong) ULONG_MAX, 0, 1, 0},
3834
4178
{"slave_compressed_protocol", OPT_SLAVE_COMPRESSED_PROTOCOL,
3835
N_("Use compression on master/slave protocol."),
3836
(char**) &opt_slave_compressed_protocol,
3837
(char**) &opt_slave_compressed_protocol,
4179
"Use compression on master/slave protocol.",
4180
(uchar**) &opt_slave_compressed_protocol,
4181
(uchar**) &opt_slave_compressed_protocol,
3838
4182
0, GET_BOOL, NO_ARG, 0, 0, 1, 0, 1, 0},
3839
4183
{"slave_net_timeout", OPT_SLAVE_NET_TIMEOUT,
3840
N_("Number of seconds to wait for more data from a master/slave connection "
3841
"before aborting the read."),
3842
(char**) &slave_net_timeout, (char**) &slave_net_timeout, 0,
4184
"Number of seconds to wait for more data from a master/slave connection before aborting the read.",
4185
(uchar**) &slave_net_timeout, (uchar**) &slave_net_timeout, 0,
3843
4186
GET_ULONG, REQUIRED_ARG, SLAVE_NET_TIMEOUT, 1, LONG_TIMEOUT, 0, 1, 0},
3844
4187
{"slave_transaction_retries", OPT_SLAVE_TRANS_RETRIES,
3845
N_("Number of times the slave SQL thread will retry a transaction in case "
3846
"it failed with a deadlock or elapsed lock wait timeout, "
3847
"before giving up and stopping."),
3848
(char**) &slave_trans_retries, (char**) &slave_trans_retries, 0,
3849
GET_ULONG, REQUIRED_ARG, 10L, 0L, (int64_t) ULONG_MAX, 0, 1, 0},
4188
"Number of times the slave SQL thread will retry a transaction in case "
4189
"it failed with a deadlock or elapsed lock wait timeout, "
4190
"before giving up and stopping.",
4191
(uchar**) &slave_trans_retries, (uchar**) &slave_trans_retries, 0,
4192
GET_ULONG, REQUIRED_ARG, 10L, 0L, (longlong) ULONG_MAX, 0, 1, 0},
3850
4193
{"slave-allow-batching", OPT_SLAVE_ALLOW_BATCHING,
3851
N_("Allow slave to batch requests."),
3852
(char**) &slave_allow_batching, (char**) &slave_allow_batching,
4194
"Allow slave to batch requests.",
4195
(uchar**) &slave_allow_batching, (uchar**) &slave_allow_batching,
3853
4196
0, GET_BOOL, NO_ARG, 0, 0, 1, 0, 1, 0},
3854
4197
{"slow_launch_time", OPT_SLOW_LAUNCH_TIME,
3855
N_("If creating the thread takes longer than this value (in seconds), the "
3856
"Slow_launch_threads counter will be incremented."),
3857
(char**) &slow_launch_time, (char**) &slow_launch_time, 0, GET_ULONG,
4198
"If creating the thread takes longer than this value (in seconds), the Slow_launch_threads counter will be incremented.",
4199
(uchar**) &slow_launch_time, (uchar**) &slow_launch_time, 0, GET_ULONG,
3858
4200
REQUIRED_ARG, 2L, 0L, LONG_TIMEOUT, 0, 1, 0},
3859
4201
{"sort_buffer_size", OPT_SORT_BUFFER,
3860
N_("Each thread that needs to do a sort allocates a buffer of this size."),
3861
(char**) &global_system_variables.sortbuff_size,
3862
(char**) &max_system_variables.sortbuff_size, 0, GET_ULONG, REQUIRED_ARG,
4202
"Each thread that needs to do a sort allocates a buffer of this size.",
4203
(uchar**) &global_system_variables.sortbuff_size,
4204
(uchar**) &max_system_variables.sortbuff_size, 0, GET_ULONG, REQUIRED_ARG,
3863
4205
MAX_SORT_MEMORY, MIN_SORT_MEMORY+MALLOC_OVERHEAD*2, ULONG_MAX,
3864
4206
MALLOC_OVERHEAD, 1, 0},
3865
4207
{"sync-binlog", OPT_SYNC_BINLOG,
3866
N_("Synchronously flush binary log to disk after every #th event. "
3867
"Use 0 (default) to disable synchronous flushing."),
3868
(char**) &sync_binlog_period, (char**) &sync_binlog_period, 0, GET_ULONG,
4208
"Synchronously flush binary log to disk after every #th event. "
4209
"Use 0 (default) to disable synchronous flushing.",
4210
(uchar**) &sync_binlog_period, (uchar**) &sync_binlog_period, 0, GET_ULONG,
3869
4211
REQUIRED_ARG, 0, 0, ULONG_MAX, 0, 1, 0},
4212
{"sync-frm", OPT_SYNC_FRM, "Sync .frm to disk on create. Enabled by default.",
4213
(uchar**) &opt_sync_frm, (uchar**) &opt_sync_frm, 0, GET_BOOL, NO_ARG, 1, 0,
4215
{"table_cache", OPT_TABLE_OPEN_CACHE,
4216
"Deprecated; use --table_open_cache instead.",
4217
(uchar**) &table_cache_size, (uchar**) &table_cache_size, 0, GET_ULONG,
4218
REQUIRED_ARG, TABLE_OPEN_CACHE_DEFAULT, 1, 512*1024L, 0, 1, 0},
3870
4219
{"table_definition_cache", OPT_TABLE_DEF_CACHE,
3871
N_("The number of cached table definitions."),
3872
(char**) &table_def_size, (char**) &table_def_size,
4220
"The number of cached table definitions.",
4221
(uchar**) &table_def_size, (uchar**) &table_def_size,
3873
4222
0, GET_ULONG, REQUIRED_ARG, 128, 1, 512*1024L, 0, 1, 0},
3874
4223
{"table_open_cache", OPT_TABLE_OPEN_CACHE,
3875
N_("The number of cached open tables."),
3876
(char**) &table_cache_size, (char**) &table_cache_size, 0, GET_ULONG,
4224
"The number of cached open tables.",
4225
(uchar**) &table_cache_size, (uchar**) &table_cache_size, 0, GET_ULONG,
3877
4226
REQUIRED_ARG, TABLE_OPEN_CACHE_DEFAULT, 1, 512*1024L, 0, 1, 0},
3878
4227
{"table_lock_wait_timeout", OPT_TABLE_LOCK_WAIT_TIMEOUT,
3879
N_("Timeout in seconds to wait for a table level lock before returning an "
3880
"error. Used only if the connection has active cursors."),
3881
(char**) &table_lock_wait_timeout, (char**) &table_lock_wait_timeout,
4228
"Timeout in seconds to wait for a table level lock before returning an "
4229
"error. Used only if the connection has active cursors.",
4230
(uchar**) &table_lock_wait_timeout, (uchar**) &table_lock_wait_timeout,
3882
4231
0, GET_ULONG, REQUIRED_ARG, 50, 1, 1024 * 1024 * 1024, 0, 1, 0},
3883
4232
{"thread_cache_size", OPT_THREAD_CACHE_SIZE,
3884
N_("How many threads we should keep in a cache for reuse."),
3885
(char**) &thread_cache_size, (char**) &thread_cache_size, 0, GET_ULONG,
4233
"How many threads we should keep in a cache for reuse.",
4234
(uchar**) &thread_cache_size, (uchar**) &thread_cache_size, 0, GET_ULONG,
3886
4235
REQUIRED_ARG, 0, 0, 16384, 0, 1, 0},
3887
4236
{"thread_pool_size", OPT_THREAD_CACHE_SIZE,
3888
N_("How many threads we should create to handle query requests in case of "
3889
"'thread_handling=pool-of-threads'"),
3890
(char**) &thread_pool_size, (char**) &thread_pool_size, 0, GET_ULONG,
4237
"How many threads we should create to handle query requests in case of 'thread_handling=pool-of-threads'",
4238
(uchar**) &thread_pool_size, (uchar**) &thread_pool_size, 0, GET_ULONG,
3891
4239
REQUIRED_ARG, 20, 1, 16384, 0, 1, 0},
3892
4240
{"thread_stack", OPT_THREAD_STACK,
3893
N_("The stack size for each thread."),
3894
(char**) &my_thread_stack_size,
3895
(char**) &my_thread_stack_size, 0, GET_ULONG,
3896
REQUIRED_ARG,DEFAULT_THREAD_STACK,
4241
"The stack size for each thread.", (uchar**) &my_thread_stack_size,
4242
(uchar**) &my_thread_stack_size, 0, GET_ULONG, REQUIRED_ARG,DEFAULT_THREAD_STACK,
3897
4243
1024L*128L, ULONG_MAX, 0, 1024, 0},
3898
4244
{ "time_format", OPT_TIME_FORMAT,
3899
N_("The TIME format (for future)."),
3900
(char**) &opt_date_time_formats[DRIZZLE_TIMESTAMP_TIME],
3901
(char**) &opt_date_time_formats[DRIZZLE_TIMESTAMP_TIME],
4245
"The TIME format (for future).",
4246
(uchar**) &opt_date_time_formats[MYSQL_TIMESTAMP_TIME],
4247
(uchar**) &opt_date_time_formats[MYSQL_TIMESTAMP_TIME],
3902
4248
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3903
4249
{"tmp_table_size", OPT_TMP_TABLE_SIZE,
3904
N_("If an internal in-memory temporary table exceeds this size, MySQL will"
3905
" automatically convert it to an on-disk MyISAM table."),
3906
(char**) &global_system_variables.tmp_table_size,
3907
(char**) &max_system_variables.tmp_table_size, 0, GET_ULL,
4250
"If an internal in-memory temporary table exceeds this size, MySQL will"
4251
" automatically convert it to an on-disk MyISAM table.",
4252
(uchar**) &global_system_variables.tmp_table_size,
4253
(uchar**) &max_system_variables.tmp_table_size, 0, GET_ULL,
3908
4254
REQUIRED_ARG, 16*1024*1024L, 1024, MAX_MEM_TABLE_SIZE, 0, 1, 0},
3909
4255
{"transaction_alloc_block_size", OPT_TRANS_ALLOC_BLOCK_SIZE,
3910
N_("Allocation block size for transactions to be stored in binary log"),
3911
(char**) &global_system_variables.trans_alloc_block_size,
3912
(char**) &max_system_variables.trans_alloc_block_size, 0, GET_ULONG,
4256
"Allocation block size for transactions to be stored in binary log",
4257
(uchar**) &global_system_variables.trans_alloc_block_size,
4258
(uchar**) &max_system_variables.trans_alloc_block_size, 0, GET_ULONG,
3913
4259
REQUIRED_ARG, QUERY_ALLOC_BLOCK_SIZE, 1024, ULONG_MAX, 0, 1024, 0},
3914
4260
{"transaction_prealloc_size", OPT_TRANS_PREALLOC_SIZE,
3915
N_("Persistent buffer for transactions to be stored in binary log"),
3916
(char**) &global_system_variables.trans_prealloc_size,
3917
(char**) &max_system_variables.trans_prealloc_size, 0, GET_ULONG,
4261
"Persistent buffer for transactions to be stored in binary log",
4262
(uchar**) &global_system_variables.trans_prealloc_size,
4263
(uchar**) &max_system_variables.trans_prealloc_size, 0, GET_ULONG,
3918
4264
REQUIRED_ARG, TRANS_ALLOC_PREALLOC_SIZE, 1024, ULONG_MAX, 0, 1024, 0},
3919
4265
{"wait_timeout", OPT_WAIT_TIMEOUT,
3920
N_("The number of seconds the server waits for activity on a connection "
3921
"before closing it."),
3922
(char**) &global_system_variables.net_wait_timeout,
3923
(char**) &max_system_variables.net_wait_timeout, 0, GET_ULONG,
3924
REQUIRED_ARG, NET_WAIT_TIMEOUT, 1, LONG_TIMEOUT,
4266
"The number of seconds the server waits for activity on a connection before closing it.",
4267
(uchar**) &global_system_variables.net_wait_timeout,
4268
(uchar**) &max_system_variables.net_wait_timeout, 0, GET_ULONG,
4269
REQUIRED_ARG, NET_WAIT_TIMEOUT, 1, IF_WIN(INT_MAX32/1000, LONG_TIMEOUT),
3926
4271
{0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}
3929
static int show_net_compression(THD *thd __attribute__((unused)),
3931
char *buff __attribute__((unused)))
4274
static int show_net_compression(THD *thd, SHOW_VAR *var, char *buff)
3933
4276
var->type= SHOW_MY_BOOL;
3934
4277
var->value= (char *)&thd->net.compress;
3938
static st_show_var_func_container
3939
show_net_compression_cont= { &show_net_compression };
3941
4281
static int show_starttime(THD *thd, SHOW_VAR *var, char *buff)
3943
4283
var->type= SHOW_LONG;