3143
3149
/* app_type */ 0
3145
3151
{"character-set-client-handshake", OPT_CHARACTER_SET_CLIENT_HANDSHAKE,
3146
"Don't ignore client side character set value sent during handshake.",
3152
N_("Don't ignore client side character set value sent during handshake."),
3147
3153
(char**) &opt_character_set_client_handshake,
3148
3154
(char**) &opt_character_set_client_handshake,
3149
3155
0, GET_BOOL, NO_ARG, 1, 0, 0, 0, 0, 0},
3150
3156
{"character-set-filesystem", OPT_CHARACTER_SET_FILESYSTEM,
3151
"Set the filesystem character set.",
3157
N_("Set the filesystem character set."),
3152
3158
(char**) &character_set_filesystem_name,
3153
3159
(char**) &character_set_filesystem_name,
3154
3160
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 },
3155
{"character-set-server", 'C', "Set the default character set.",
3161
{"character-set-server", 'C',
3162
N_("Set the default character set."),
3156
3163
(char**) &default_character_set_name, (char**) &default_character_set_name,
3157
3164
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 },
3158
3165
{"character-sets-dir", OPT_CHARSETS_DIR,
3159
"Directory where character sets are.", (char**) &charsets_dir,
3166
N_("Directory where character sets are."), (char**) &charsets_dir,
3160
3167
(char**) &charsets_dir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3161
{"chroot", 'r', "Chroot mysqld daemon during startup.",
3169
N_("Chroot mysqld daemon during startup."),
3162
3170
(char**) &mysqld_chroot, (char**) &mysqld_chroot, 0, GET_STR, REQUIRED_ARG,
3163
3171
0, 0, 0, 0, 0, 0},
3164
{"collation-server", OPT_DEFAULT_COLLATION, "Set the default collation.",
3172
{"collation-server", OPT_DEFAULT_COLLATION,
3173
N_("Set the default collation."),
3165
3174
(char**) &default_collation_name, (char**) &default_collation_name,
3166
3175
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 },
3167
{"completion-type", OPT_COMPLETION_TYPE, "Default completion type.",
3176
{"completion-type", OPT_COMPLETION_TYPE,
3177
N_("Default completion type."),
3168
3178
(char**) &global_system_variables.completion_type,
3169
3179
(char**) &max_system_variables.completion_type, 0, GET_ULONG,
3170
3180
REQUIRED_ARG, 0, 0, 2, 0, 1, 0},
3171
{"console", OPT_CONSOLE, "Write error output on screen; Don't remove the console window on windows.",
3181
{"console", OPT_CONSOLE,
3182
N_("Write error output on screen."),
3172
3183
(char**) &opt_console, (char**) &opt_console, 0, GET_BOOL, NO_ARG, 0, 0, 0,
3174
{"core-file", OPT_WANT_CORE, "Write core on errors.", 0, 0, 0, GET_NO_ARG,
3185
{"core-file", OPT_WANT_CORE,
3186
N_("Write core on errors."),
3187
0, 0, 0, GET_NO_ARG,
3175
3188
NO_ARG, 0, 0, 0, 0, 0, 0},
3176
{"datadir", 'h', "Path to the database root.", (char**) &mysql_data_home,
3190
N_("Path to the database root."),
3191
(char**) &mysql_data_home,
3177
3192
(char**) &mysql_data_home, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3178
{"default-character-set", 'C', "Set the default character set (deprecated option, use --character-set-server instead).",
3193
{"default-character-set", 'C',
3194
N_("Set the default character set (deprecated option, use "
3195
"--character-set-server instead)."),
3179
3196
(char**) &default_character_set_name, (char**) &default_character_set_name,
3180
3197
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 },
3181
{"default-collation", OPT_DEFAULT_COLLATION, "Set the default collation (deprecated option, use --collation-server instead).",
3198
{"default-collation", OPT_DEFAULT_COLLATION,
3199
N_("Set the default collation (deprecated option, use --collation-server "
3182
3201
(char**) &default_collation_name, (char**) &default_collation_name,
3183
3202
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 },
3184
3203
{"default-storage-engine", OPT_STORAGE_ENGINE,
3185
"Set the default storage engine (table type) for tables.",
3204
N_("Set the default storage engine (table type) for tables."),
3186
3205
(char**)&default_storage_engine_str, (char**)&default_storage_engine_str,
3187
3206
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3188
{"default-time-zone", OPT_DEFAULT_TIME_ZONE, "Set the default time zone.",
3207
{"default-time-zone", OPT_DEFAULT_TIME_ZONE,
3208
N_("Set the default time zone."),
3189
3209
(char**) &default_tz_name, (char**) &default_tz_name,
3190
3210
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 },
3191
{"delay-key-write", OPT_DELAY_KEY_WRITE, "Type of DELAY_KEY_WRITE.",
3211
{"delay-key-write", OPT_DELAY_KEY_WRITE,
3212
N_("Type of DELAY_KEY_WRITE."),
3192
3213
0,0,0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
3193
3214
{"delay-key-write-for-all-tables", OPT_DELAY_KEY_WRITE_ALL,
3194
"Don't flush key buffers between writes for any MyISAM table (Deprecated option, use --delay-key-write=all instead).",
3215
N_("Don't flush key buffers between writes for any MyISAM table "
3216
"(Deprecated option, use --delay-key-write=all instead)."),
3195
3217
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
3196
3218
{"disconnect-slave-event-count", OPT_DISCONNECT_SLAVE_EVENT_COUNT,
3197
"Option used by mysql-test for debugging and testing of replication.",
3219
N_("Option used by mysql-test for debugging and testing of replication."),
3198
3220
(char**) &disconnect_slave_event_count,
3199
3221
(char**) &disconnect_slave_event_count, 0, GET_INT, REQUIRED_ARG, 0, 0, 0,
3201
3223
#ifdef HAVE_STACK_TRACE_ON_SEGV
3202
{"enable-pstack", OPT_DO_PSTACK, "Print a symbolic stack trace on failure.",
3224
{"enable-pstack", OPT_DO_PSTACK,
3225
N_("Print a symbolic stack trace on failure."),
3203
3226
(char**) &opt_do_pstack, (char**) &opt_do_pstack, 0, GET_BOOL, NO_ARG, 0, 0,
3205
3228
#endif /* HAVE_STACK_TRACE_ON_SEGV */
3206
3229
{"engine-condition-pushdown",
3207
3230
OPT_ENGINE_CONDITION_PUSHDOWN,
3208
"Push supported query conditions to the storage engine.",
3231
N_("Push supported query conditions to the storage engine."),
3209
3232
(char**) &global_system_variables.engine_condition_pushdown,
3210
3233
(char**) &global_system_variables.engine_condition_pushdown,
3211
3234
0, GET_BOOL, NO_ARG, 1, 0, 0, 0, 0, 0},
3212
3235
/* See how it's handled in get_one_option() */
3213
{"exit-info", 'T', "Used for debugging; Use at your own risk!", 0, 0, 0,
3214
GET_LONG, OPT_ARG, 0, 0, 0, 0, 0, 0},
3215
{"flush", OPT_FLUSH, "Flush tables to disk between SQL commands.", 0, 0, 0,
3216
GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
3237
N_("Used for debugging; Use at your own risk!"),
3238
0, 0, 0, GET_LONG, OPT_ARG, 0, 0, 0, 0, 0, 0},
3239
{"flush", OPT_FLUSH,
3240
N_("Flush tables to disk between SQL commands."),
3241
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
3217
3242
/* We must always support the next option to make scripts like mysqltest
3218
3243
easier to do */
3219
3244
{"gdb", OPT_DEBUGGING,
3220
"Set up signals usable for debugging",
3245
N_("Set up signals usable for debugging"),
3221
3246
(char**) &opt_debugging, (char**) &opt_debugging,
3222
3247
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3223
3248
{"general-log", OPT_GENERAL_LOG,
3224
"Enable|disable general log", (char**) &opt_log,
3249
N_("Enable general query log"),
3225
3251
(char**) &opt_log, 0, GET_BOOL, OPT_ARG, 0, 0, 0, 0, 0, 0},
3226
{"init-connect", OPT_INIT_CONNECT, "Command(s) that are executed for each new connection",
3252
{"init-connect", OPT_INIT_CONNECT,
3253
N_("Command(s) that are executed for each new connection"),
3227
3254
(char**) &opt_init_connect, (char**) &opt_init_connect, 0, GET_STR_ALLOC,
3228
3255
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3229
{"init-file", OPT_INIT_FILE, "Read SQL commands from this file at startup.",
3256
{"init-file", OPT_INIT_FILE,
3257
N_("Read SQL commands from this file at startup."),
3230
3258
(char**) &opt_init_file, (char**) &opt_init_file, 0, GET_STR, REQUIRED_ARG,
3231
3259
0, 0, 0, 0, 0, 0},
3232
{"init-slave", OPT_INIT_SLAVE, "Command(s) that are executed when a slave connects to this master",
3260
{"init-slave", OPT_INIT_SLAVE,
3261
N_("Command(s) that are executed when a slave connects to this master"),
3233
3262
(char**) &opt_init_slave, (char**) &opt_init_slave, 0, GET_STR_ALLOC,
3234
3263
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3235
3264
{"language", 'L',
3236
"Client error messages in given language. May be given as a full path. (IGNORED)",
3237
3266
(char**) &language_ptr, (char**) &language_ptr, 0, GET_STR, REQUIRED_ARG,
3238
3267
0, 0, 0, 0, 0, 0},
3239
3268
{"lc-time-names", OPT_LC_TIME_NAMES,
3240
"Set the language used for the month names and the days of the week.",
3269
N_("Set the language used for the month names and the days of the week."),
3241
3270
(char**) &lc_time_names_name,
3242
3271
(char**) &lc_time_names_name,
3243
3272
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 },
3244
3273
{"local-infile", OPT_LOCAL_INFILE,
3245
"Enable/disable LOAD DATA LOCAL INFILE (takes values 1|0).",
3274
N_("Enable/disable LOAD DATA LOCAL INFILE (takes values 1|0)."),
3246
3275
(char**) &opt_local_infile,
3247
3276
(char**) &opt_local_infile, 0, GET_BOOL, OPT_ARG,
3248
3277
1, 0, 0, 0, 0, 0},
3249
{"log", 'l', "Log connections and queries to file.", (char**) &opt_logname,
3279
N_("Log connections and queries to file."),
3280
(char**) &opt_logname,
3250
3281
(char**) &opt_logname, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
3251
3282
{"log-bin", OPT_BIN_LOG,
3252
"Log update queries in binary format. Optional (but strongly recommended "
3253
"to avoid replication problems if server's hostname changes) argument "
3254
"should be the chosen location for the binary log files.",
3283
N_("Log update queries in binary format. Optional argument is the "
3284
"location for the binary log files.(Strongly "
3285
"recommended to avoid replication problems if server's hostname "
3255
3287
(char**) &opt_bin_logname, (char**) &opt_bin_logname, 0, GET_STR_ALLOC,
3256
3288
OPT_ARG, 0, 0, 0, 0, 0, 0},
3257
3289
{"log-bin-index", OPT_BIN_LOG_INDEX,
3258
"File that holds the names for last binary log files.",
3290
N_("File that holds the names for last binary log files."),
3259
3291
(char**) &opt_binlog_index_name, (char**) &opt_binlog_index_name, 0, GET_STR,
3260
3292
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3263
3295
binary logging.
3265
3297
{"log-bin-trust-function-creators", OPT_LOG_BIN_TRUST_FUNCTION_CREATORS,
3266
"If equal to 0 (the default), then when --log-bin is used, creation of "
3267
"a stored function (or trigger) is allowed only to users having the SUPER privilege "
3268
"and only if this stored function (trigger) may not break binary logging."
3269
"Note that if ALL connections to this server ALWAYS use row-based binary "
3270
"logging, the security issues do not exist and the binary logging cannot "
3271
"break, so you can safely set this to 1."
3298
N_("If equal to 0 (the default), then when --log-bin is used, creation of "
3299
"a stored function (or trigger) is allowed only to users having the "
3300
"SUPER privilege and only if this stored function (trigger) may not "
3301
"break binary logging. Note that if ALL connections to this server "
3302
"ALWAYS use row-based binary logging, the security issues do not exist "
3303
"and the binary logging cannot break, so you can safely set this to 1.")
3272
3304
,(char**) &trust_function_creators, (char**) &trust_function_creators, 0,
3273
3305
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3274
{"log-error", OPT_ERROR_LOG_FILE, "Error log file.",
3306
{"log-error", OPT_ERROR_LOG_FILE,
3307
N_("Error log file."),
3275
3308
(char**) &log_error_file_ptr, (char**) &log_error_file_ptr, 0, GET_STR,
3276
3309
OPT_ARG, 0, 0, 0, 0, 0, 0},
3277
{"log-isam", OPT_ISAM_LOG, "Log all MyISAM changes to file.",
3310
{"log-isam", OPT_ISAM_LOG,
3311
N_("Log all MyISAM changes to file."),
3278
3312
(char**) &myisam_log_filename, (char**) &myisam_log_filename, 0, GET_STR,
3279
3313
OPT_ARG, 0, 0, 0, 0, 0, 0},
3280
3314
{"log-long-format", '0',
3281
"Log some extra information to update log. Please note that this option is deprecated; see --log-short-format option.",
3315
N_("Log some extra information to update log. Please note that this option "
3316
"is deprecated; see --log-queries-not-using-indexes option."),
3282
3317
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
3283
3318
#ifdef WITH_CSV_STORAGE_ENGINE
3284
3319
{"log-output", OPT_LOG_OUTPUT,
3285
"Syntax: log-output[=value[,value...]], where \"value\" could be TABLE, "
3320
N_("Syntax: log-output[=value[,value...]], where \"value\" could be TABLE, "
3287
3322
(char**) &log_output_str, (char**) &log_output_str, 0,
3288
3323
GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
3290
3325
{"log-queries-not-using-indexes", OPT_LOG_QUERIES_NOT_USING_INDEXES,
3291
"Log queries that are executed without benefit of any index to the slow log if it is open.",
3292
(char**) &opt_log_queries_not_using_indexes, (char**) &opt_log_queries_not_using_indexes,
3326
N_("Log queries that are executed without benefit of any index to the "
3327
"slow log if it is open."),
3328
(char**) &opt_log_queries_not_using_indexes,
3329
(char**) &opt_log_queries_not_using_indexes,
3293
3330
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3294
3331
{"log-short-format", OPT_SHORT_LOG_FORMAT,
3295
"Don't log extra information to update and slow-query logs.",
3332
N_("Don't log extra information to update and slow-query logs."),
3296
3333
(char**) &opt_short_log_format, (char**) &opt_short_log_format,
3297
3334
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3298
3335
{"log-slave-updates", OPT_LOG_SLAVE_UPDATES,
3299
"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.",
3300
(char**) &opt_log_slave_updates, (char**) &opt_log_slave_updates, 0, GET_BOOL,
3336
N_("Tells the slave to log the updates from the slave thread to the binary "
3337
"log. You will need to turn it on if you plan to "
3338
"daisy-chain the slaves."),
3339
(char**) &opt_log_slave_updates, (char**) &opt_log_slave_updates,
3301
3341
NO_ARG, 0, 0, 0, 0, 0, 0},
3302
3342
{"log-slow-admin-statements", OPT_LOG_SLOW_ADMIN_STATEMENTS,
3303
"Log slow OPTIMIZE, ANALYZE, ALTER and other administrative statements to the slow log if it is open.",
3343
N_("Log slow OPTIMIZE, ANALYZE, ALTER and other administrative statements "
3344
"to the slow log if it is open."),
3304
3345
(char**) &opt_log_slow_admin_statements,
3305
3346
(char**) &opt_log_slow_admin_statements,
3306
3347
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3307
3348
{"log-slow-slave-statements", OPT_LOG_SLOW_SLAVE_STATEMENTS,
3308
"Log slow statements executed by slave thread to the slow log if it is open.",
3349
N_("Log slow statements executed by slave thread to the slow log if it is "
3309
3351
(char**) &opt_log_slow_slave_statements,
3310
3352
(char**) &opt_log_slow_slave_statements,
3311
3353
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3312
3354
{"log-slow-queries", OPT_SLOW_QUERY_LOG,
3313
"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.",
3355
N_("Log slow queries to a table or log file. Defaults logging to table "
3356
"mysql.slow_log or hostname-slow.log if --log-output=file is used. "
3357
"Must be enabled to activate other slow log options."),
3314
3358
(char**) &opt_slow_logname, (char**) &opt_slow_logname, 0, GET_STR, OPT_ARG,
3315
3359
0, 0, 0, 0, 0, 0},
3316
3360
{"log-tc", OPT_LOG_TC,
3317
"Path to transaction coordinator log (used for transactions that affect "
3318
"more than one storage engine, when binary log is disabled)",
3361
N_("Path to transaction coordinator log (used for transactions that affect "
3362
"more than one storage engine, when binary log is disabled)"),
3319
3363
(char**) &opt_tc_log_file, (char**) &opt_tc_log_file, 0, GET_STR,
3320
3364
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3321
3365
#ifdef HAVE_MMAP
3322
{"log-tc-size", OPT_LOG_TC_SIZE, "Size of transaction coordinator log.",
3366
{"log-tc-size", OPT_LOG_TC_SIZE,
3367
N_("Size of transaction coordinator log."),
3323
3368
(char**) &opt_tc_log_size, (char**) &opt_tc_log_size, 0, GET_ULONG,
3324
3369
REQUIRED_ARG, TC_LOG_MIN_SIZE, TC_LOG_MIN_SIZE, ULONG_MAX, 0,
3325
3370
TC_LOG_PAGE_SIZE, 0},
3327
{"log-warnings", 'W', "Log some not critical warnings to the log file.",
3372
{"log-warnings", 'W',
3373
N_("Log some not critical warnings to the log file."),
3328
3374
(char**) &global_system_variables.log_warnings,
3329
3375
(char**) &max_system_variables.log_warnings, 0, GET_ULONG, OPT_ARG, 1, 0, 0,
3331
3377
{"low-priority-updates", OPT_LOW_PRIORITY_UPDATES,
3332
"INSERT/DELETE/UPDATE has lower priority than selects.",
3378
N_("INSERT/DELETE/UPDATE has lower priority than selects."),
3333
3379
(char**) &global_system_variables.low_priority_updates,
3334
3380
(char**) &max_system_variables.low_priority_updates,
3335
3381
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3336
3382
{"master-info-file", OPT_MASTER_INFO_FILE,
3337
"The location and name of the file that remembers the master and where the I/O replication \
3338
thread is in the master's binlogs.",
3383
N_("The location and name of the file that remembers the master and "
3384
"where the I/O replication thread is in the master's binlogs."),
3339
3385
(char**) &master_info_file, (char**) &master_info_file, 0, GET_STR,
3340
3386
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3341
3387
{"master-retry-count", OPT_MASTER_RETRY_COUNT,
3342
"The number of tries the slave will make to connect to the master before giving up.",
3388
N_("The number of tries the slave will make to connect to the master "
3389
"before giving up."),
3343
3390
(char**) &master_retry_count, (char**) &master_retry_count, 0, GET_ULONG,
3344
3391
REQUIRED_ARG, 3600*24, 0, 0, 0, 0, 0},
3345
3392
{"max-binlog-dump-events", OPT_MAX_BINLOG_DUMP_EVENTS,
3346
"Option used by mysql-test for debugging and testing of replication.",
3393
N_("Option used by mysql-test for debugging and testing of replication."),
3347
3394
(char**) &max_binlog_dump_events, (char**) &max_binlog_dump_events, 0,
3348
3395
GET_INT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3349
{"memlock", OPT_MEMLOCK, "Lock mysqld in memory.", (char**) &locked_in_memory,
3396
{"memlock", OPT_MEMLOCK,
3397
N_("Lock mysqld in memory."),
3398
(char**) &locked_in_memory,
3350
3399
(char**) &locked_in_memory, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3351
3400
{"myisam-recover", OPT_MYISAM_RECOVER,
3352
"Syntax: myisam-recover[=option[,option...]], where option can be DEFAULT, BACKUP, FORCE or QUICK.",
3401
N_("Syntax: myisam-recover[=option[,option...]], where option can be "
3402
"DEFAULT, BACKUP, FORCE or QUICK."),
3353
3403
(char**) &myisam_recover_options_str, (char**) &myisam_recover_options_str, 0,
3354
3404
GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
3355
{"new", 'n', "Use very new possible 'unsafe' functions.",
3406
N_("Use very new possible 'unsafe' functions."),
3356
3407
(char**) &global_system_variables.new_mode,
3357
3408
(char**) &max_system_variables.new_mode,
3358
3409
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3359
3410
{"old-alter-table", OPT_OLD_ALTER_TABLE,
3360
"Use old, non-optimized alter table.",
3411
N_("Use old, non-optimized alter table."),
3361
3412
(char**) &global_system_variables.old_alter_table,
3362
3413
(char**) &max_system_variables.old_alter_table, 0, GET_BOOL, NO_ARG,
3363
3414
0, 0, 0, 0, 0, 0},
3364
3415
{"old-style-user-limits", OPT_OLD_STYLE_USER_LIMITS,
3365
"Enable old-style user limits (before 5.0.3 user resources were counted per each user+host vs. per account)",
3416
N_("Enable old-style user limits (before 5.0.3 user resources were counted "
3417
"per each user+host vs. per account)"),
3366
3418
(char**) &opt_old_style_user_limits, (char**) &opt_old_style_user_limits,
3367
3419
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3368
{"pid-file", OPT_PID_FILE, "Pid file used by safe_mysqld.",
3420
{"pid-file", OPT_PID_FILE,
3421
N_("Pid file used by safe_mysqld."),
3369
3422
(char**) &pidfile_name_ptr, (char**) &pidfile_name_ptr, 0, GET_STR,
3370
3423
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3371
{"port", 'P', "Port number to use for connection or 0 for default to, in "
3372
"order of preference, my.cnf, $DRIZZLE_TCP_PORT, "
3425
N_("Port number to use for connection or 0 for default to, in "
3426
"order of preference, my.cnf, $DRIZZLE_TCP_PORT, "
3373
3427
#if DRIZZLE_PORT_DEFAULT == 0
3376
"built-in default (" STRINGIFY_ARG(DRIZZLE_PORT) ").",
3430
"built-in default (" STRINGIFY_ARG(DRIZZLE_PORT) ")."),
3377
3431
(char**) &mysqld_port,
3378
3432
(char**) &mysqld_port, 0, GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3379
3433
{"port-open-timeout", OPT_PORT_OPEN_TIMEOUT,
3380
"Maximum time in seconds to wait for the port to become free. "
3381
"(Default: no wait)", (char**) &mysqld_port_timeout,
3434
N_("Maximum time in seconds to wait for the port to become free. "
3435
"(Default: no wait)"),
3436
(char**) &mysqld_port_timeout,
3382
3437
(char**) &mysqld_port_timeout, 0, GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3383
3438
{"relay-log", OPT_RELAY_LOG,
3384
"The location and name to use for relay logs.",
3439
N_("The location and name to use for relay logs."),
3385
3440
(char**) &opt_relay_logname, (char**) &opt_relay_logname, 0,
3386
3441
GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3387
3442
{"relay-log-index", OPT_RELAY_LOG_INDEX,
3388
"The location and name to use for the file that keeps a list of the last \
3443
N_("The location and name to use for the file that keeps a list of the "
3444
"last relay logs."),
3390
3445
(char**) &opt_relaylog_index_name, (char**) &opt_relaylog_index_name, 0,
3391
3446
GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3392
3447
{"relay-log-info-file", OPT_RELAY_LOG_INFO_FILE,
3393
"The location and name of the file that remembers where the SQL replication \
3394
thread is in the relay logs.",
3448
N_("The location and name of the file that remembers where the SQL "
3449
"replication thread is in the relay logs."),
3395
3450
(char**) &relay_log_info_file, (char**) &relay_log_info_file, 0, GET_STR,
3396
3451
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3397
3452
{"replicate-do-db", OPT_REPLICATE_DO_DB,
3398
"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.%.",
3453
N_("Tells the slave thread to restrict replication to the specified "
3454
"database. To specify more than one database, use the directive "
3455
"multiple times, once for each database. Note that this will only work "
3456
"if you do not use cross-database queries such as UPDATE "
3457
"some_db.some_table SET foo='bar' while having selected a different or "
3458
"no database. If you need cross database updates to work, use "
3459
"replicate-wild-do-table=db_name.%.",)
3399
3460
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3400
3461
{"replicate-do-table", OPT_REPLICATE_DO_TABLE,
3401
"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.",
3462
N_("Tells the slave thread to restrict replication to the specified table. "
3463
"To specify more than one table, use the directive multiple times, once "
3464
"for each table. This will work for cross-database updates, in contrast "
3465
"to replicate-do-db."),
3402
3466
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3403
3467
{"replicate-ignore-db", OPT_REPLICATE_IGNORE_DB,
3404
"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.%. ",
3468
N_("Tells the slave thread to not replicate to the specified database. To "
3469
"specify more than one database to ignore, use the directive multiple "
3470
"times, once for each database. This option will not work if you use "
3471
"cross database updates. If you need cross database updates to work, "
3472
"use replicate-wild-ignore-table=db_name.%. "),
3405
3473
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3406
3474
{"replicate-ignore-table", OPT_REPLICATE_IGNORE_TABLE,
3407
"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.",
3475
N_("Tells the slave thread to not replicate to the specified table. To "
3476
"specify more than one table to ignore, use the directive multiple "
3477
"times, once for each table. This will work for cross-datbase updates, "
3478
"in contrast to replicate-ignore-db."),
3408
3479
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3409
3480
{"replicate-rewrite-db", OPT_REPLICATE_REWRITE_DB,
3410
"Updates to a database with a different name than the original. Example: replicate-rewrite-db=master_db_name->slave_db_name.",
3481
N_("Updates to a database with a different name than the original. "
3482
"Example: replicate-rewrite-db=master_db_name->slave_db_name."),
3411
3483
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3412
3484
{"replicate-same-server-id", OPT_REPLICATE_SAME_SERVER_ID,
3413
"In replication, if set to 1, do not skip events having our server id. \
3414
Default value is 0 (to break infinite loops in circular replication). \
3415
Can't be set to 1 if --log-slave-updates is used.",
3485
N_("In replication, if set to 1, do not skip events having our server id. "
3486
"Default value is 0 (to break infinite loops in circular replication). "
3487
"Can't be set to 1 if --log-slave-updates is used."),
3416
3488
(char**) &replicate_same_server_id,
3417
3489
(char**) &replicate_same_server_id,
3418
3490
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3419
3491
{"replicate-wild-do-table", OPT_REPLICATE_WILD_DO_TABLE,
3420
"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.",
3492
N_("Tells the slave thread to restrict replication to the tables that "
3493
"match the specified wildcard pattern. To specify more than one table, "
3494
"use the directive multiple times, once for each table. This will work "
3495
"for cross-database updates. Example: replicate-wild-do-table=foo%.bar% "
3496
"will replicate only updates to tables in all databases that start with "
3497
"foo and whose table names start with bar."),
3421
3498
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3422
3499
{"replicate-wild-ignore-table", OPT_REPLICATE_WILD_IGNORE_TABLE,
3423
"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.",
3500
N_("Tells the slave thread to not replicate to the tables that match the "
3501
"given wildcard pattern. To specify more than one table to ignore, use "
3502
"the directive multiple times, once for each table. This will work for "
3503
"cross-database updates. Example: replicate-wild-ignore-table=foo%.bar% "
3504
"will not do updates to tables in databases that start with foo and "
3505
"whose table names start with bar."),
3424
3506
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3425
3507
// In replication, we may need to tell the other servers how to connect
3426
3508
{"report-host", OPT_REPORT_HOST,
3427
"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.",
3509
N_("Hostname or IP of the slave to be reported to to the master during "
3510
"slave registration. Will appear in the output of SHOW SLAVE HOSTS. "
3511
"Leave unset if you do not want the slave to register itself with the "
3512
"master. Note that it is not sufficient for the master to simply read "
3513
"the IP of the slave off the socket once the slave connects. Due to NAT "
3514
"and other routing issues, that IP may not be valid for connecting to "
3515
"the slave from the master or other hosts."),
3428
3516
(char**) &report_host, (char**) &report_host, 0, GET_STR, REQUIRED_ARG, 0, 0,
3430
3518
{"report-password", OPT_REPORT_PASSWORD, "Undocumented.",
3431
3519
(char**) &report_password, (char**) &report_password, 0, GET_STR,
3432
3520
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3433
3521
{"report-port", OPT_REPORT_PORT,
3434
"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.",
3522
N_("Port for connecting to slave reported to the master during slave "
3523
"registration. Set it only if the slave is listening on a non-default "
3524
"port or if you have a special tunnel from the master or other clients "
3525
"to the slave. If not sure, leave this option unset."),
3435
3526
(char**) &report_port, (char**) &report_port, 0, GET_UINT, REQUIRED_ARG,
3436
3527
DRIZZLE_PORT, 0, 0, 0, 0, 0},
3437
{"safe-mode", OPT_SAFE, "Skip some optimize stages (for testing).",
3528
{"safe-mode", OPT_SAFE,
3529
N_("Skip some optimize stages (for testing)."),
3438
3530
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
3439
3531
{"secure-file-priv", OPT_SECURE_FILE_PRIV,
3440
"Limit LOAD DATA, SELECT ... OUTFILE, and LOAD_FILE() to files within specified directory",
3532
N_("Limit LOAD DATA, SELECT ... OUTFILE, and LOAD_FILE() to files "
3533
"within specified directory"),
3441
3534
(char**) &opt_secure_file_priv, (char**) &opt_secure_file_priv, 0,
3442
3535
GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3443
3536
{"server-id", OPT_SERVER_ID,
3444
"Uniquely identifies the server instance in the community of replication partners.",
3537
N_("Uniquely identifies the server instance in the community of "
3538
"replication partners."),
3445
3539
(char**) &server_id, (char**) &server_id, 0, GET_ULONG, REQUIRED_ARG, 0, 0, 0,
3447
3541
{"set-variable", 'O',
3448
"Change the value of a variable. Please note that this option is deprecated;you can set variables directly with --variable-name=value.",
3542
N_("Change the value of a variable. Please note that this option is "
3543
"deprecated;you can set variables directly with --variable-name=value."),
3449
3544
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3450
{"skip-new", OPT_SKIP_NEW, "Don't use new, possible wrong routines.",
3545
{"skip-new", OPT_SKIP_NEW,
3546
N_("Don't use new, possible wrong routines."),
3451
3547
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
3452
3548
{"skip-slave-start", OPT_SKIP_SLAVE_START,
3453
"If set, slave is not autostarted.", (char**) &opt_skip_slave_start,
3549
N_("If set, slave is not autostarted."),
3550
(char**) &opt_skip_slave_start,
3454
3551
(char**) &opt_skip_slave_start, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
3455
3552
{"skip-stack-trace", OPT_SKIP_STACK_TRACE,
3456
"Don't print a stack trace on failure.", 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0,
3553
N_("Don't print a stack trace on failure."),
3554
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0,
3458
{"skip-symlink", OPT_SKIP_SYMLINKS, "Don't allow symlinking of tables. Deprecated option. Use --skip-symbolic-links instead.",
3556
{"skip-symlink", OPT_SKIP_SYMLINKS,
3557
N_("Don't allow symlinking of tables. Deprecated option. Use "
3558
"--skip-symbolic-links instead."),
3459
3559
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
3460
3560
{"skip-thread-priority", OPT_SKIP_PRIOR,
3461
"Don't give threads different priorities.", 0, 0, 0, GET_NO_ARG, NO_ARG,
3561
N_("Don't give threads different priorities."),
3562
0, 0, 0, GET_NO_ARG, NO_ARG,
3462
3563
DEFAULT_SKIP_THREAD_PRIORITY, 0, 0, 0, 0, 0},
3463
3564
{"slave-load-tmpdir", OPT_SLAVE_LOAD_TMPDIR,
3464
"The location where the slave should put its temporary files when \
3465
replicating a LOAD DATA INFILE command.",
3565
N_("The location where the slave should put its temporary files when "
3566
"replicating a LOAD DATA INFILE command."),
3466
3567
(char**) &slave_load_tmpdir, (char**) &slave_load_tmpdir, 0, GET_STR_ALLOC,
3467
3568
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3468
3569
{"slave-skip-errors", OPT_SLAVE_SKIP_ERRORS,
3469
"Tells the slave thread to continue replication when a query event returns an error from the provided list.",
3570
N_("Tells the slave thread to continue replication when a query event "
3571
"returns an error from the provided list."),
3470
3572
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3471
3573
{"slave-exec-mode", OPT_SLAVE_EXEC_MODE,
3472
"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.",
3473
(char**) &slave_exec_mode_str, (char**) &slave_exec_mode_str, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3574
N_("Modes for how replication events should be executed. Legal values are "
3575
"STRICT (default) and IDEMPOTENT. In IDEMPOTENT mode, replication will "
3576
"not stop for operations that are idempotent. In STRICT mode, "
3577
"replication will stop on any unexpected difference between the master "
3579
(char**) &slave_exec_mode_str, (char**) &slave_exec_mode_str,
3580
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3474
3581
{"slow-query-log", OPT_SLOW_LOG,
3475
"Enable|disable slow query log", (char**) &opt_slow_log,
3582
N_("Enable|disable slow query log"),
3583
(char**) &opt_slow_log,
3476
3584
(char**) &opt_slow_log, 0, GET_BOOL, OPT_ARG, 0, 0, 0, 0, 0, 0},
3477
3585
{"sql-bin-update-same", OPT_SQL_BIN_UPDATE_SAME,
3478
"The update log is deprecated since version 5.0, is replaced by the binary \
3479
log and this option does nothing anymore.",
3480
3587
0, 0, 0, GET_DISABLED, NO_ARG, 0, 0, 0, 0, 0, 0},
3481
{"symbolic-links", 's', "Enable symbolic link support.",
3588
{"symbolic-links", 's',
3589
N_("Enable symbolic link support."),
3482
3590
(char**) &my_use_symdir, (char**) &my_use_symdir, 0, GET_BOOL, NO_ARG,
3484
3592
The system call realpath() produces warnings under valgrind and
3488
3596
IF_PURIFY(0,1), 0, 0, 0, 0, 0},
3489
3597
{"sysdate-is-now", OPT_SYSDATE_IS_NOW,
3490
"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.",
3598
N_("Non-default option to alias SYSDATE() to NOW() to make it "
3599
"safe-replicable."),
3491
3600
(char**) &global_system_variables.sysdate_is_now,
3492
3601
0, 0, GET_BOOL, NO_ARG, 0, 0, 1, 0, 1, 0},
3493
3602
{"tc-heuristic-recover", OPT_TC_HEURISTIC_RECOVER,
3494
"Decision to use in heuristic recover process. Possible values are COMMIT or ROLLBACK.",
3603
N_("Decision to use in heuristic recover process. Possible values are "
3604
"COMMIT or ROLLBACK."),
3495
3605
(char**) &opt_tc_heuristic_recover, (char**) &opt_tc_heuristic_recover,
3496
3606
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3497
3607
{"temp-pool", OPT_TEMP_POOL,
3498
"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.",
3608
N_("Using this option will cause most temporary files created to use a "
3609
"small set of names, rather than a unique name for each new file."),
3499
3610
(char**) &use_temp_pool, (char**) &use_temp_pool, 0, GET_BOOL, NO_ARG, 1,
3500
3611
0, 0, 0, 0, 0},
3501
3612
{"timed_mutexes", OPT_TIMED_MUTEXES,
3502
"Specify whether to time mutexes (only InnoDB mutexes are currently supported)",
3613
N_("Specify whether to time mutexes (only InnoDB mutexes are currently "
3503
3615
(char**) &timed_mutexes, (char**) &timed_mutexes, 0, GET_BOOL, NO_ARG, 0,
3504
3616
0, 0, 0, 0, 0},
3505
3617
{"tmpdir", 't',
3506
"Path for temporary files. Several paths may be specified, separated by a "
3508
", in this case they are used in a round-robin fashion.",
3618
N_("Path for temporary files. Several paths may be specified, separated "
3620
", in this case they are used in a round-robin fashion."),
3509
3621
(char**) &opt_mysql_tmpdir,
3510
3622
(char**) &opt_mysql_tmpdir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3511
3623
{"transaction-isolation", OPT_TX_ISOLATION,
3512
"Default transaction isolation level.", 0, 0, 0, GET_STR, REQUIRED_ARG, 0,
3624
N_("Default transaction isolation level."),
3625
0, 0, 0, GET_STR, REQUIRED_ARG, 0,
3513
3626
0, 0, 0, 0, 0},
3514
{"use-symbolic-links", 's', "Enable symbolic link support. Deprecated option; use --symbolic-links instead.",
3627
{"use-symbolic-links", 's',
3628
N_("Enable symbolic link support. Deprecated option; use --symbolic-links "
3515
3630
(char**) &my_use_symdir, (char**) &my_use_symdir, 0, GET_BOOL, NO_ARG,
3516
3631
IF_PURIFY(0,1), 0, 0, 0, 0, 0},
3517
{"user", 'u', "Run mysqld daemon as user.", 0, 0, 0, GET_STR, REQUIRED_ARG,
3633
N_("Run mysqld daemon as user."),
3634
0, 0, 0, GET_STR, REQUIRED_ARG,
3518
3635
0, 0, 0, 0, 0, 0},
3519
{"version", 'V', "Output version information and exit.", 0, 0, 0, GET_NO_ARG,
3637
N_("Output version information and exit."),
3638
0, 0, 0, GET_NO_ARG,
3520
3639
NO_ARG, 0, 0, 0, 0, 0, 0},
3521
{"warnings", 'W', "Deprecated; use --log-warnings instead.",
3641
N_("Deprecated; use --log-warnings instead."),
3522
3642
(char**) &global_system_variables.log_warnings,
3523
3643
(char**) &max_system_variables.log_warnings, 0, GET_ULONG, OPT_ARG,
3524
3644
1, 0, ULONG_MAX, 0, 0, 0},
3525
{ "back_log", OPT_BACK_LOG,
3526
"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.",
3645
{"back_log", OPT_BACK_LOG,
3646
N_("The number of outstanding connection requests MySQL can have. This "
3647
"comes into play when the main MySQL thread gets very many connection "
3648
"requests in a very short time."),
3527
3649
(char**) &back_log, (char**) &back_log, 0, GET_ULONG,
3528
3650
REQUIRED_ARG, 50, 1, 65535, 0, 1, 0 },
3529
{"binlog_cache_size", OPT_BINLOG_CACHE_SIZE,
3530
"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.",
3531
(char**) &binlog_cache_size, (char**) &binlog_cache_size, 0, GET_ULONG,
3532
REQUIRED_ARG, 32*1024L, IO_SIZE, ULONG_MAX, 0, IO_SIZE, 0},
3533
{"bulk_insert_buffer_size", OPT_BULK_INSERT_BUFFER_SIZE,
3534
"Size of tree cache used in bulk insert optimisation. Note that this is a limit per thread!",
3535
(char**) &global_system_variables.bulk_insert_buff_size,
3536
(char**) &max_system_variables.bulk_insert_buff_size,
3537
0, GET_ULONG, REQUIRED_ARG, 8192*1024, 0, ULONG_MAX, 0, 1, 0},
3538
{"connect_timeout", OPT_CONNECT_TIMEOUT,
3539
"The number of seconds the mysqld server is waiting for a connect packet before responding with 'Bad handshake'.",
3651
{ "binlog_cache_size", OPT_BINLOG_CACHE_SIZE,
3652
N_("The size of the cache to hold the SQL statements for the binary log "
3653
"during a transaction. If you often use big, multi-statement "
3654
"transactions you can increase this to get more performance."),
3655
(char**) &binlog_cache_size, (char**) &binlog_cache_size, 0, GET_ULONG,
3656
REQUIRED_ARG, 32*1024L, IO_SIZE, ULONG_MAX, 0, IO_SIZE, 0},
3657
{ "bulk_insert_buffer_size", OPT_BULK_INSERT_BUFFER_SIZE,
3658
N_("Size of tree cache used in bulk insert optimisation. Note that this is "
3659
"a limit per thread!"),
3660
(char**) &global_system_variables.bulk_insert_buff_size,
3661
(char**) &max_system_variables.bulk_insert_buff_size,
3662
0, GET_ULONG, REQUIRED_ARG, 8192*1024, 0, ULONG_MAX, 0, 1, 0},
3663
{ "connect_timeout", OPT_CONNECT_TIMEOUT,
3664
N_("The number of seconds the mysqld server is waiting for a connect "
3665
"packet before responding with 'Bad handshake'."),
3540
3666
(char**) &connect_timeout, (char**) &connect_timeout,
3541
0, GET_ULONG, REQUIRED_ARG, CONNECT_TIMEOUT, 2, LONG_TIMEOUT, 0, 1, 0 },
3667
0, GET_ULONG, REQUIRED_ARG, CONNECT_TIMEOUT, 2, LONG_TIMEOUT, 0, 1, 0 },
3542
3668
{ "date_format", OPT_DATE_FORMAT,
3543
"The DATE format (For future).",
3669
N_("The DATE format (For future)."),
3544
3670
(char**) &opt_date_time_formats[DRIZZLE_TIMESTAMP_DATE],
3545
3671
(char**) &opt_date_time_formats[DRIZZLE_TIMESTAMP_DATE],
3546
3672
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3547
3673
{ "datetime_format", OPT_DATETIME_FORMAT,
3548
"The DATETIME/TIMESTAMP format (for future).",
3674
N_("The DATETIME/TIMESTAMP format (for future)."),
3549
3675
(char**) &opt_date_time_formats[DRIZZLE_TIMESTAMP_DATETIME],
3550
3676
(char**) &opt_date_time_formats[DRIZZLE_TIMESTAMP_DATETIME],
3551
3677
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3552
3678
{ "default_week_format", OPT_DEFAULT_WEEK_FORMAT,
3553
"The default week format used by WEEK() functions.",
3679
N_("The default week format used by WEEK() functions."),
3554
3680
(char**) &global_system_variables.default_week_format,
3555
3681
(char**) &max_system_variables.default_week_format,
3556
3682
0, GET_ULONG, REQUIRED_ARG, 0, 0, 7L, 0, 1, 0},
3557
{"div_precision_increment", OPT_DIV_PRECINCREMENT,
3558
"Precision of the result of '/' operator will be increased on that value.",
3683
{ "div_precision_increment", OPT_DIV_PRECINCREMENT,
3684
N_("Precision of the result of '/' operator will be increased on that "
3559
3686
(char**) &global_system_variables.div_precincrement,
3560
3687
(char**) &max_system_variables.div_precincrement, 0, GET_ULONG,
3561
3688
REQUIRED_ARG, 4, 0, DECIMAL_MAX_SCALE, 0, 0, 0},
3562
{"expire_logs_days", OPT_EXPIRE_LOGS_DAYS,
3563
"If non-zero, binary logs will be purged after expire_logs_days "
3564
"days; possible purges happen at startup and at binary log rotation.",
3565
(char**) &expire_logs_days,
3566
(char**) &expire_logs_days, 0, GET_ULONG,
3567
REQUIRED_ARG, 0, 0, 99, 0, 1, 0},
3689
{ "expire_logs_days", OPT_EXPIRE_LOGS_DAYS,
3690
N_("If non-zero, binary logs will be purged after expire_logs_days "
3691
"days; possible purges happen at startup and at binary log rotation."),
3692
(char**) &expire_logs_days,
3693
(char**) &expire_logs_days, 0, GET_ULONG,
3694
REQUIRED_ARG, 0, 0, 99, 0, 1, 0},
3568
3695
{ "group_concat_max_len", OPT_GROUP_CONCAT_MAX_LEN,
3569
"The maximum length of the result of function group_concat.",
3696
N_("The maximum length of the result of function group_concat."),
3570
3697
(char**) &global_system_variables.group_concat_max_len,
3571
3698
(char**) &max_system_variables.group_concat_max_len, 0, GET_ULONG,
3572
3699
REQUIRED_ARG, 1024, 4, ULONG_MAX, 0, 1, 0},
3573
{"interactive_timeout", OPT_INTERACTIVE_TIMEOUT,
3574
"The number of seconds the server waits for activity on an interactive connection before closing it.",
3700
{ "interactive_timeout", OPT_INTERACTIVE_TIMEOUT,
3701
N_("The number of seconds the server waits for activity on an interactive "
3702
"connection before closing it."),
3575
3703
(char**) &global_system_variables.net_interactive_timeout,
3576
3704
(char**) &max_system_variables.net_interactive_timeout, 0,
3577
3705
GET_ULONG, REQUIRED_ARG, NET_WAIT_TIMEOUT, 1, LONG_TIMEOUT, 0, 1, 0},
3578
{"join_buffer_size", OPT_JOIN_BUFF_SIZE,
3579
"The size of the buffer that is used for full joins.",
3706
{ "join_buffer_size", OPT_JOIN_BUFF_SIZE,
3707
N_("The size of the buffer that is used for full joins."),
3580
3708
(char**) &global_system_variables.join_buff_size,
3581
3709
(char**) &max_system_variables.join_buff_size, 0, GET_ULONG,
3582
3710
REQUIRED_ARG, 128*1024L, IO_SIZE*2+MALLOC_OVERHEAD, ULONG_MAX,
3583
3711
MALLOC_OVERHEAD, IO_SIZE, 0},
3584
3712
{"keep_files_on_create", OPT_KEEP_FILES_ON_CREATE,
3585
"Don't overwrite stale .MYD and .MYI even if no directory is specified.",
3713
N_("Don't overwrite stale .MYD and .MYI even if no directory is specified."),
3586
3714
(char**) &global_system_variables.keep_files_on_create,
3587
3715
(char**) &max_system_variables.keep_files_on_create,
3588
3716
0, GET_BOOL, OPT_ARG, 0, 0, 0, 0, 0, 0},
3589
3717
{"key_buffer_size", OPT_KEY_BUFFER_SIZE,
3590
"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.",
3718
N_("The size of the buffer used for index blocks for MyISAM tables. "
3719
"Increase this to get better index handling (for all reads and multiple "
3720
"writes) to as much as you can afford;",
3591
3721
(char**) &dflt_key_cache_var.param_buff_size,
3593
3723
0, (GET_ULL | GET_ASK_ADDR),
3594
3724
REQUIRED_ARG, KEY_CACHE_SIZE, MALLOC_OVERHEAD, SIZE_T_MAX, MALLOC_OVERHEAD,
3596
3726
{"key_cache_age_threshold", OPT_KEY_CACHE_AGE_THRESHOLD,
3597
"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",
3727
N_("This characterizes the number of hits a hot block has to be untouched "
3728
"until it is considered aged enough to be downgraded to a warm block. "
3729
"This specifies the percentage ratio of that number of hits to the "
3730
"total number of blocks in key cache"),
3598
3731
(char**) &dflt_key_cache_var.param_age_threshold,
3600
3733
0, (GET_ULONG | GET_ASK_ADDR), REQUIRED_ARG,
3601
3734
300, 100, ULONG_MAX, 0, 100, 0},
3602
3735
{"key_cache_block_size", OPT_KEY_CACHE_BLOCK_SIZE,
3603
"The default size of key cache blocks",
3736
N_("The default size of key cache blocks"),
3604
3737
(char**) &dflt_key_cache_var.param_block_size,
3606
3739
0, (GET_ULONG | GET_ASK_ADDR), REQUIRED_ARG,
3607
3740
KEY_CACHE_BLOCK_SIZE, 512, 1024 * 16, 0, 512, 0},
3608
3741
{"key_cache_division_limit", OPT_KEY_CACHE_DIVISION_LIMIT,
3609
"The minimum percentage of warm blocks in key cache",
3742
N_("The minimum percentage of warm blocks in key cache"),
3610
3743
(char**) &dflt_key_cache_var.param_division_limit,
3612
3745
0, (GET_ULONG | GET_ASK_ADDR) , REQUIRED_ARG, 100,
3613
3746
1, 100, 0, 1, 0},
3614
3747
{"long_query_time", OPT_LONG_QUERY_TIME,
3615
"Log all queries that have taken more than long_query_time seconds to execute to file. "
3616
"The argument will be treated as a decimal value with microsecond precission.",
3748
N_("Log all queries that have taken more than long_query_time seconds to "
3749
"execute to file. The argument will be treated as a decimal value with "
3750
"microsecond precission."),
3617
3751
(char**) &long_query_time, (char**) &long_query_time, 0, GET_DOUBLE,
3618
3752
REQUIRED_ARG, 10, 0, LONG_TIMEOUT, 0, 0, 0},
3619
3753
{"max_allowed_packet", OPT_MAX_ALLOWED_PACKET,
3620
"Max packetlength to send/receive from to server.",
3754
N_("Max packetlength to send/receive from to server."),
3621
3755
(char**) &global_system_variables.max_allowed_packet,
3622
3756
(char**) &max_system_variables.max_allowed_packet, 0, GET_ULONG,
3623
3757
REQUIRED_ARG, 1024*1024L, 1024, 1024L*1024L*1024L, MALLOC_OVERHEAD, 1024, 0},
3624
3758
{"max_binlog_cache_size", OPT_MAX_BINLOG_CACHE_SIZE,
3625
"Can be used to restrict the total size used to cache a multi-transaction query.",
3759
N_("Can be used to restrict the total size used to cache a "
3760
"multi-transaction query."),
3626
3761
(char**) &max_binlog_cache_size, (char**) &max_binlog_cache_size, 0,
3627
3762
GET_ULONG, REQUIRED_ARG, ULONG_MAX, IO_SIZE, ULONG_MAX, 0, IO_SIZE, 0},
3628
3763
{"max_binlog_size", OPT_MAX_BINLOG_SIZE,
3629
"Binary log will be rotated automatically when the size exceeds this \
3630
value. Will also apply to relay logs if max_relay_log_size is 0. \
3631
The minimum value for this variable is 4096.",
3764
N_("Binary log will be rotated automatically when the size exceeds this "
3765
"value. Will also apply to relay logs if max_relay_log_size is 0. "
3766
"The minimum value for this variable is 4096."),
3632
3767
(char**) &max_binlog_size, (char**) &max_binlog_size, 0, GET_ULONG,
3633
3768
REQUIRED_ARG, 1024*1024L*1024L, IO_SIZE, 1024*1024L*1024L, 0, IO_SIZE, 0},
3634
3769
{"max_connect_errors", OPT_MAX_CONNECT_ERRORS,
3635
"If there is more than this number of interrupted connections from a host this host will be blocked from further connections.",
3770
N_("If there is more than this number of interrupted connections from a "
3771
"host this host will be blocked from further connections."),
3636
3772
(char**) &max_connect_errors, (char**) &max_connect_errors, 0, GET_ULONG,
3637
3773
REQUIRED_ARG, MAX_CONNECT_ERRORS, 1, ULONG_MAX, 0, 1, 0},
3638
3774
// Default max_connections of 151 is larger than Apache's default max
3639
3775
// children, to avoid "too many connections" error in a common setup
3640
3776
{"max_connections", OPT_MAX_CONNECTIONS,
3641
"The number of simultaneous clients allowed.", (char**) &max_connections,
3777
N_("The number of simultaneous clients allowed."),
3778
(char**) &max_connections,
3642
3779
(char**) &max_connections, 0, GET_ULONG, REQUIRED_ARG, 151, 1, 100000, 0, 1,
3644
3781
{"max_error_count", OPT_MAX_ERROR_COUNT,
3645
"Max number of errors/warnings to store for a statement.",
3782
N_("Max number of errors/warnings to store for a statement."),
3646
3783
(char**) &global_system_variables.max_error_count,
3647
3784
(char**) &max_system_variables.max_error_count,
3648
3785
0, GET_ULONG, REQUIRED_ARG, DEFAULT_ERROR_COUNT, 0, 65535, 0, 1, 0},
3649
3786
{"max_heap_table_size", OPT_MAX_HEP_TABLE_SIZE,
3650
"Don't allow creation of heap tables bigger than this.",
3787
N_("Don't allow creation of heap tables bigger than this."),
3651
3788
(char**) &global_system_variables.max_heap_table_size,
3652
3789
(char**) &max_system_variables.max_heap_table_size, 0, GET_ULL,
3653
3790
REQUIRED_ARG, 16*1024*1024L, 16384, MAX_MEM_TABLE_SIZE,
3654
3791
MALLOC_OVERHEAD, 1024, 0},
3655
3792
{"max_join_size", OPT_MAX_JOIN_SIZE,
3656
"Joins that are probably going to read more than max_join_size records return an error.",
3793
N_("Joins that are probably going to read more than max_join_size records "
3794
"return an error."),
3657
3795
(char**) &global_system_variables.max_join_size,
3658
3796
(char**) &max_system_variables.max_join_size, 0, GET_HA_ROWS, REQUIRED_ARG,
3659
3797
~0L, 1, ~0L, 0, 1, 0},
3660
3798
{"max_length_for_sort_data", OPT_MAX_LENGTH_FOR_SORT_DATA,
3661
"Max number of bytes in sorted records.",
3799
N_("Max number of bytes in sorted records."),
3662
3800
(char**) &global_system_variables.max_length_for_sort_data,
3663
3801
(char**) &max_system_variables.max_length_for_sort_data, 0, GET_ULONG,
3664
3802
REQUIRED_ARG, 1024, 4, 8192*1024L, 0, 1, 0},
3665
3803
{"max_relay_log_size", OPT_MAX_RELAY_LOG_SIZE,
3666
"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.",
3804
N_("If non-zero: relay log will be rotated automatically when the size "
3805
"exceeds this value; if zero (the default): when the size exceeds "
3806
"max_binlog_size. 0 excepted, the minimum value for this variable "
3667
3808
(char**) &max_relay_log_size, (char**) &max_relay_log_size, 0, GET_ULONG,
3668
3809
REQUIRED_ARG, 0L, 0L, 1024*1024L*1024L, 0, IO_SIZE, 0},
3669
3810
{ "max_seeks_for_key", OPT_MAX_SEEKS_FOR_KEY,
3670
"Limit assumed max number of seeks when looking up rows based on a key",
3811
N_("Limit assumed max number of seeks when looking up rows based on a key"),
3671
3812
(char**) &global_system_variables.max_seeks_for_key,
3672
3813
(char**) &max_system_variables.max_seeks_for_key, 0, GET_ULONG,
3673
3814
REQUIRED_ARG, ULONG_MAX, 1, ULONG_MAX, 0, 1, 0 },
3674
3815
{"max_sort_length", OPT_MAX_SORT_LENGTH,
3675
"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).",
3816
N_("The number of bytes to use when sorting BLOB or TEXT values "
3817
"(only the first max_sort_length bytes of each value are used; the "
3818
"rest are ignored)."),
3676
3819
(char**) &global_system_variables.max_sort_length,
3677
3820
(char**) &max_system_variables.max_sort_length, 0, GET_ULONG,
3678
3821
REQUIRED_ARG, 1024, 4, 8192*1024L, 0, 1, 0},
3679
3822
{"max_tmp_tables", OPT_MAX_TMP_TABLES,
3680
"Maximum number of temporary tables a client can keep open at a time.",
3823
N_("Maximum number of temporary tables a client can keep open at a time."),
3681
3824
(char**) &global_system_variables.max_tmp_tables,
3682
3825
(char**) &max_system_variables.max_tmp_tables, 0, GET_ULONG,
3683
3826
REQUIRED_ARG, 32, 1, ULONG_MAX, 0, 1, 0},