"No automatic rehashing. One has to use 'rehash' to get table and field completion. This gives a quicker start of mysql and disables rehashing on reconnect.",
0,0,0,GET_NO_ARG,NO_ARG,0,0,0,0,0,0},
{"batch",'B',
"Don't use history file. Disable interactive behavior. (Enables --silent)",0,0,0,GET_NO_ARG,NO_ARG,0,0,0,0,0,0},
"Don't use history file. Disable interactive behavior. (Enables --silent.)",0,0,0,GET_NO_ARG,NO_ARG,0,0,0,0,0,0},
{"character-sets-dir",OPT_CHARSETS_DIR,
"Directory where character sets are.",(uchar**)&charsets_dir,
"Directory for character set files.",(uchar**)&charsets_dir,
"Named commands are disabled. Use \\* form only, or use named commands only in the beginning of a line ending with a semicolon (;) Since version 10.9 the client now starts with this option ENABLED by default! Disable with '-G'. Long format commands still work from the first line. WARNING: option deprecated; use --disable-named-commands instead.",
"Named commands are disabled. Use \\* form only, or use named commands "
"only in the beginning of a line ending with a semicolon (;). Since "
"version 10.9, the client now starts with this option ENABLED by default. "
"Disable with '-G'. Long format commands still work from the first line. "
"WARNING: option deprecated; use --disable-named-commands instead.",
0,0,0,GET_NO_ARG,NO_ARG,0,0,0,0,0,0},
{"ignore-spaces",'i',"Ignore space after function names.",
"Pager to use to display results. If you don't supply an option the default pager is taken from your ENV variable PAGER. Valid pagers are less, more, cat [> filename], etc. See interactive help (\\h) also. This option does not work in batch mode. Disable with --disable-pager. This option is disabled by default.",
"Pager to use to display results. If you don't supply an option, the default pager is taken from your ENV variable PAGER. Valid pagers are less, more, cat [> filename], etc. See interactive help (\\h) also. This option does not work in batch mode. Disable with --disable-pager. This option is disabled by default.",
0,0,0,GET_STR,OPT_ARG,0,0,0,0,0,0},
{"no-pager",OPT_NOPAGER,
"Disable pager and print to stdout. See interactive help (\\h) also. WARNING: option deprecated; use --disable-pager instead.",
"Append everything into outfile. See interactive help (\\h) also. Does not work in batch mode. Disable with --disable-tee. This option is disabled by default.",
0,0,0,GET_STR,REQUIRED_ARG,0,0,0,0,0,0},
{"no-tee",OPT_NOTEE,"Disable outfile. See interactive help (\\h) also. WARNING: option deprecated; use --disable-tee instead",0,0,0,GET_NO_ARG,
{"no-tee",OPT_NOTEE,"Disable outfile. See interactive help (\\h) also. WARNING: Option deprecated; use --disable-tee instead.",0,0,0,GET_NO_ARG,
NO_ARG,0,0,0,0,0,0},
#ifndef DONT_ALLOW_USER_CHANGE
{"user",'u',"User for login if not current user.",(uchar**)¤t_user,
{"protocol",OPT_MYSQL_PROTOCOL,"The protocol of connection (tcp,socket,pipe,memory).",
{"protocol",OPT_MYSQL_PROTOCOL,"The protocol to use for connection (tcp, socket, pipe, memory).",
0,0,0,GET_STR,REQUIRED_ARG,0,0,0,0,0,0},
{"quick",'q',
"If you are using this option with CHECK TABLE, it prevents the check from scanning the rows to check for wrong links. This is the fastest check. If you are using this option with REPAIR TABLE, it will try to repair only the index tree. This is the fastest repair method for a table.",
"To dump several databases. Note the difference in usage; In this case no tables are given. All name arguments are regarded as databasenames. 'USE db_name;' will be included in the output.",
"Dump several databases. Note the difference in usage; in this case no tables are given. All name arguments are regarded as database names. 'USE db_name;' will be included in the output.",
"'CREATE DATABASE /*!32312 IF NOT EXISTS*/ db_name;' will not be put in the output. The above line will be added otherwise, if --databases or --all-databases option was given.}.",
"Creates tab separated textfile for each table to given path. (creates .sql and .txt files). NOTE: This only works if mysqldump is run on the same machine as the mysqld daemon.",
"Create tab-separated textfile for each table to given path. (Create .sql "
"and .txt files.) NOTE: This only works if mysqldump is run on the same "
"SET TIME_ZONE='+00:00' at top of dump to allow dumping of TIMESTAMP data when a server has data in different time zones or data is being moved between servers with different time zones.",
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license\n");
puts("Dumping definition and data mysql database or table");
puts("By Igor Romanenko, Monty, Jani & Sinisa.");
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license.\n");
puts("Dumping structure and contents of MySQL databases and tables.");
puts("Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.");
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license\n");
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license.\n");
printf("\
Loads tables from text files in various formats. The base name of the\n\
text file must be the name of the table that should be used.\n\
"More verbose output; You can use this multiple times to get even more verbose output.",
"More verbose output; you can use this multiple times to get even more "
"verbose output.",
0,0,0,GET_NO_ARG,NO_ARG,0,0,0,0,0,0},
{"version",'V',"Output version information and exit.",0,0,0,GET_NO_ARG,
NO_ARG,0,0,0,0,0,0},
...
...
@@ -250,16 +253,16 @@ static void usage(void)
{
print_version();
puts("Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.");
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license\n");
puts("Shows the structure of a mysql database (databases,tables and columns)\n");
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license.\n");
puts("Shows the structure of a MySQL database (databases, tables, and columns).\n");
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license\n");
puts("Run a query multiple times against the server\n");
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license.\n");
puts("Run a query multiple times against the server.\n");
{"event-scheduler",OPT_EVENT_SCHEDULER,"Enable/disable the event scheduler.",
NULL,NULL,0,GET_STR,OPT_ARG,0,0,0,0,0,0},
{"exit-info",'T',"Used for debugging; Use at your own risk!",0,0,0,
{"exit-info",'T',"Used for debugging. Use at your own risk.",0,0,0,
GET_LONG,OPT_ARG,0,0,0,0,0,0},
{"external-locking",OPT_USE_LOCKING,"Use system (external) locking (disabled by default). With this option enabled you can run myisamchk to test (not repair) tables while the MySQL server is running. Disable with --skip-external-locking.",
"The password the slave thread will authenticate with when connecting to the master. If not set, an empty password is assumed.The value in master.info will take precedence if it can be read.",
"The password the slave thread will authenticate with when connecting to "
"the master. If not set, an empty password is assumed. The value in "
"master.info will take precedence if it can be read.",
"A dedicated thread is created to, at the given millisecons interval, invalidate the query cache if another MySQL server in the cluster has changed the data in the database.",
"A dedicated thread is created to, at the given milliseconds interval, "
"invalidate the query cache if another MySQL server in the cluster has "
@@ -6422,7 +6433,7 @@ Can't be set to 1 if --log-slave-updates is used.",
{"skip-networking",OPT_SKIP_NETWORKING,
"Don't allow connection with TCP/IP.",0,0,0,GET_NO_ARG,NO_ARG,0,0,0,
0,0,0},
{"skip-new",OPT_SKIP_NEW,"Don't use new, possible wrong routines.",
{"skip-new",OPT_SKIP_NEW,"Don't use new, possibly wrong routines.",
0,0,0,GET_NO_ARG,NO_ARG,0,0,0,0,0,0},
#ifndef DBUG_OFF
#ifdef SAFEMALLOC
...
...
@@ -6440,7 +6451,7 @@ Can't be set to 1 if --log-slave-updates is used.",
{"skip-stack-trace",OPT_SKIP_STACK_TRACE,
"Don't print a stack trace on failure.",0,0,0,GET_NO_ARG,NO_ARG,0,0,
0,0,0,0},
{"skip-symlink",OPT_SKIP_SYMLINKS,"Don't allow symlinking of tables. Deprecated option. Use --skip-symbolic-links instead.",
{"skip-symlink",OPT_SKIP_SYMLINKS,"Don't allow symlinking of tables. Deprecated option. Use --skip-symbolic-links instead.",
0,0,0,GET_NO_ARG,NO_ARG,0,0,0,0,0,0},
{"skip-thread-priority",OPT_SKIP_PRIOR,
"Don't give threads different priorities. Deprecated option.",0,0,0,GET_NO_ARG,NO_ARG,
...
...
@@ -6455,11 +6466,11 @@ replicating a LOAD DATA INFILE command.",
"Tells the slave thread to continue replication when a query event returns an error from the provided list.",
0,0,0,GET_STR,REQUIRED_ARG,0,0,0,0,0,0},
{"slave-exec-mode",OPT_SLAVE_EXEC_MODE,
"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.",
"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.",
"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",
"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 "
"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",
"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-"
"Make all non-temporary tables read-only, with the exception for replication (slave) threads and users with the SUPER privilege",
"Make all non-temporary tables read-only, with the exception of replication "
"(slave) threads and users with the SUPER privilege.",
(uchar**)&opt_readonly,
(uchar**)&opt_readonly,
0,GET_BOOL,NO_ARG,0,0,1,0,1,0},
{"read_rnd_buffer_size",OPT_RECORD_RND_BUFFER,
"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.",
"When reading rows in sorted order after a sort, the rows are read through "
"this buffer to avoid disk seeks. If not set, then it's set to the value of "
"1 = YES = Don't issue an error message (warning only) if a VIEW without presence of a key of the underlying table is used in queries with a LIMIT clause for updating. 0 = NO = Prohibit update of a VIEW, which does not contain a key of the underlying table and the query uses a LIMIT clause (usually get from GUI tools).",
...
...
@@ -7081,7 +7104,11 @@ The minimum value for this variable is 4096.",
"Causes updates to non-transactional engines using statement format to be written directly to binary log. Before using this option make sure that there are no dependencies between transactional and non-transactional tables such as in the statement INSERT INTO t_myisam SELECT * FROM t_innodb; otherwise, slaves may diverge from the master.",
"Causes updates to non-transactional engines using statement format to be "
"written directly to binary log. Before using this option, make sure that "
"there are no dependencies between transactional and non-transactional "
"tables such as in the statement INSERT INTO t_myisam SELECT * FROM "
"t_innodb; otherwise, slaves may diverge from the master.",