mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / man / mysqladmin.1
blob94000c3bc1a3d25e0cecffa91c47e024edf26ff8
1 '\" t
2 .\"     Title: \fBmysqladmin\fR
3 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.77.1 <http://docbook.sf.net/>
5 .\"      Date: 11/04/2013
6 .\"    Manual: MySQL Database System
7 .\"    Source: MySQL 5.1
8 .\"  Language: English
9 .\"
10 .TH "\FBMYSQLADMIN\FR" "1" "11/04/2013" "MySQL 5\&.1" "MySQL Database System"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el       .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .\" mysqladmin
31 .\" administration: server
32 .\" server administration
33 .SH "NAME"
34 mysqladmin \- client for administering a MySQL server
35 .SH "SYNOPSIS"
36 .HP \w'\fBmysqladmin\ [\fR\fB\fIoptions\fR\fR\fB]\ \fR\fB\fIcommand\fR\fR\fB\ [\fR\fB\fIcommand\-options\fR\fR\fB]\ [\fR\fB\fIcommand\fR\fR\fB\ [\fR\fB\fIcommand\-options\fR\fR\fB]]\ \&.\&.\&.\fR\ 'u
37 \fBmysqladmin [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIcommand\fR\fR\fB [\fR\fB\fIcommand\-options\fR\fR\fB] [\fR\fB\fIcommand\fR\fR\fB [\fR\fB\fIcommand\-options\fR\fR\fB]] \&.\&.\&.\fR
38 .SH "DESCRIPTION"
39 .PP
40 \fBmysqladmin\fR
41 is a client for performing administrative operations\&. You can use it to check the server\*(Aqs configuration and current status, to create and drop databases, and more\&.
42 .PP
43 Invoke
44 \fBmysqladmin\fR
45 like this:
46 .sp
47 .if n \{\
48 .RS 4
49 .\}
50 .nf
51 shell> \fBmysqladmin [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIcommand\fR\fR\fB [\fR\fB\fIcommand\-arg\fR\fR\fB] [\fR\fB\fIcommand\fR\fR\fB [\fR\fB\fIcommand\-arg\fR\fR\fB]] \&.\&.\&.\fR
52 .fi
53 .if n \{\
54 .RE
55 .\}
56 .PP
57 \fBmysqladmin\fR
58 supports the following commands\&. Some of the commands take an argument following the command name\&.
59 .sp
60 .RS 4
61 .ie n \{\
62 \h'-04'\(bu\h'+03'\c
63 .\}
64 .el \{\
65 .sp -1
66 .IP \(bu 2.3
67 .\}
68 create \fIdb_name\fR
69 .sp
70 Create a new database named
71 \fIdb_name\fR\&.
72 .RE
73 .sp
74 .RS 4
75 .ie n \{\
76 \h'-04'\(bu\h'+03'\c
77 .\}
78 .el \{\
79 .sp -1
80 .IP \(bu 2.3
81 .\}
82 debug
83 .sp
84 Tell the server to write debug information to the error log\&. Format and content of this information is subject to change\&.
85 .sp
86 Beginning with MySQL 5\&.1\&.12, this includes information about the Event Scheduler\&. See
87 Section\ \&19.4.5, \(lqEvent Scheduler Status\(rq\&.
88 .RE
89 .sp
90 .RS 4
91 .ie n \{\
92 \h'-04'\(bu\h'+03'\c
93 .\}
94 .el \{\
95 .sp -1
96 .IP \(bu 2.3
97 .\}
98 drop \fIdb_name\fR
99 .sp
100 Delete the database named
101 \fIdb_name\fR
102 and all its tables\&.
105 .RS 4
106 .ie n \{\
107 \h'-04'\(bu\h'+03'\c
109 .el \{\
110 .sp -1
111 .IP \(bu 2.3
113 extended\-status
115 Display the server status variables and their values\&.
118 .RS 4
119 .ie n \{\
120 \h'-04'\(bu\h'+03'\c
122 .el \{\
123 .sp -1
124 .IP \(bu 2.3
126 flush\-hosts
128 Flush all information in the host cache\&.
131 .RS 4
132 .ie n \{\
133 \h'-04'\(bu\h'+03'\c
135 .el \{\
136 .sp -1
137 .IP \(bu 2.3
139 flush\-logs
141 Flush all logs\&.
144 .RS 4
145 .ie n \{\
146 \h'-04'\(bu\h'+03'\c
148 .el \{\
149 .sp -1
150 .IP \(bu 2.3
152 flush\-privileges
154 Reload the grant tables (same as
155 reload)\&.
158 .RS 4
159 .ie n \{\
160 \h'-04'\(bu\h'+03'\c
162 .el \{\
163 .sp -1
164 .IP \(bu 2.3
166 flush\-status
168 Clear status variables\&.
171 .RS 4
172 .ie n \{\
173 \h'-04'\(bu\h'+03'\c
175 .el \{\
176 .sp -1
177 .IP \(bu 2.3
179 flush\-tables
181 Flush all tables\&.
184 .RS 4
185 .ie n \{\
186 \h'-04'\(bu\h'+03'\c
188 .el \{\
189 .sp -1
190 .IP \(bu 2.3
192 flush\-threads
194 Flush the thread cache\&.
197 .RS 4
198 .ie n \{\
199 \h'-04'\(bu\h'+03'\c
201 .el \{\
202 .sp -1
203 .IP \(bu 2.3
205 kill \fIid\fR,\fIid\fR,\&.\&.\&.
207 Kill server threads\&. If multiple thread ID values are given, there must be no spaces in the list\&.
210 .RS 4
211 .ie n \{\
212 \h'-04'\(bu\h'+03'\c
214 .el \{\
215 .sp -1
216 .IP \(bu 2.3
218 old\-password \fInew\-password\fR
220 This is like the
221 password
222 command but stores the password using the old (pre\-4\&.1) password\-hashing format\&. (See
223 Section\ \&6.1.2.4, \(lqPassword Hashing in MySQL\(rq\&.)
226 .RS 4
227 .ie n \{\
228 \h'-04'\(bu\h'+03'\c
230 .el \{\
231 .sp -1
232 .IP \(bu 2.3
234 password \fInew\-password\fR
236 Set a new password\&. This changes the password to
237 \fInew\-password\fR
238 for the account that you use with
239 \fBmysqladmin\fR
240 for connecting to the server\&. Thus, the next time you invoke
241 \fBmysqladmin\fR
242 (or any other client program) using the same account, you will need to specify the new password\&.
244 If the
245 \fInew\-password\fR
246 value contains spaces or other characters that are special to your command interpreter, you need to enclose it within quotation marks\&. On Windows, be sure to use double quotation marks rather than single quotation marks; single quotation marks are not stripped from the password, but rather are interpreted as part of the password\&. For example:
248 .if n \{\
249 .RS 4
252 shell> \fBmysqladmin password "my new password"\fR
254 .if n \{\
257 .if n \{\
260 .RS 4
261 .it 1 an-trap
262 .nr an-no-space-flag 1
263 .nr an-break-flag 1
265 .ps +1
266 \fBCaution\fR
267 .ps -1
269 Do not use this command used if the server was started with the
270 \fB\-\-skip\-grant\-tables\fR
271 option\&. No password change will be applied\&. This is true even if you precede the
272 password
273 command with
274 flush\-privileges
275 on the same command line to re\-enable the grant tables because the flush operation occurs after you connect\&. However, you can use
276 \fBmysqladmin flush\-privileges\fR
277 to re\-enable the grant table and then use a separate
278 \fBmysqladmin password\fR
279 command to change the password\&.
280 .sp .5v
284 .RS 4
285 .ie n \{\
286 \h'-04'\(bu\h'+03'\c
288 .el \{\
289 .sp -1
290 .IP \(bu 2.3
292 ping
294 Check whether the server is available\&. The return status from
295 \fBmysqladmin\fR
296 is 0 if the server is running, 1 if it is not\&. This is 0 even in case of an error such as
297 Access denied, because this means that the server is running but refused the connection, which is different from the server not running\&.
300 .RS 4
301 .ie n \{\
302 \h'-04'\(bu\h'+03'\c
304 .el \{\
305 .sp -1
306 .IP \(bu 2.3
308 processlist
310 Show a list of active server threads\&. This is like the output of the
311 SHOW PROCESSLIST
312 statement\&. If the
313 \fB\-\-verbose\fR
314 option is given, the output is like that of
315 SHOW FULL PROCESSLIST\&. (See
316 Section\ \&13.7.5.31, \(lqSHOW PROCESSLIST Syntax\(rq\&.)
319 .RS 4
320 .ie n \{\
321 \h'-04'\(bu\h'+03'\c
323 .el \{\
324 .sp -1
325 .IP \(bu 2.3
327 reload
329 Reload the grant tables\&.
332 .RS 4
333 .ie n \{\
334 \h'-04'\(bu\h'+03'\c
336 .el \{\
337 .sp -1
338 .IP \(bu 2.3
340 refresh
342 Flush all tables and close and open log files\&.
345 .RS 4
346 .ie n \{\
347 \h'-04'\(bu\h'+03'\c
349 .el \{\
350 .sp -1
351 .IP \(bu 2.3
353 shutdown
355 Stop the server\&.
358 .RS 4
359 .ie n \{\
360 \h'-04'\(bu\h'+03'\c
362 .el \{\
363 .sp -1
364 .IP \(bu 2.3
366 start\-slave
368 Start replication on a slave server\&.
371 .RS 4
372 .ie n \{\
373 \h'-04'\(bu\h'+03'\c
375 .el \{\
376 .sp -1
377 .IP \(bu 2.3
379 status
381 Display a short server status message\&.
384 .RS 4
385 .ie n \{\
386 \h'-04'\(bu\h'+03'\c
388 .el \{\
389 .sp -1
390 .IP \(bu 2.3
392 stop\-slave
394 Stop replication on a slave server\&.
397 .RS 4
398 .ie n \{\
399 \h'-04'\(bu\h'+03'\c
401 .el \{\
402 .sp -1
403 .IP \(bu 2.3
405 variables
407 Display the server system variables and their values\&.
410 .RS 4
411 .ie n \{\
412 \h'-04'\(bu\h'+03'\c
414 .el \{\
415 .sp -1
416 .IP \(bu 2.3
418 version
420 Display version information from the server\&.
423 All commands can be shortened to any unique prefix\&. For example:
425 .if n \{\
426 .RS 4
429 shell> \fBmysqladmin proc stat\fR
430 +\-\-\-\-+\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-+\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-+\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
431 | Id | User  | Host      | db | Command | Time | State | Info             |
432 +\-\-\-\-+\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-+\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-+\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
433 | 51 | monty | localhost |    | Query   | 0    |       | show processlist |
434 +\-\-\-\-+\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-+\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-+\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
435 Uptime: 1473624  Threads: 1  Questions: 39487
436 Slow queries: 0  Opens: 541  Flush tables: 1
437 Open tables: 19  Queries per second avg: 0\&.0268
439 .if n \{\
443 .\" status command: results
446 \fBmysqladmin status\fR
447 command result displays the following values:
449 .RS 4
450 .ie n \{\
451 \h'-04'\(bu\h'+03'\c
453 .el \{\
454 .sp -1
455 .IP \(bu 2.3
457 .\" uptime
458 Uptime
460 The number of seconds the MySQL server has been running\&.
463 .RS 4
464 .ie n \{\
465 \h'-04'\(bu\h'+03'\c
467 .el \{\
468 .sp -1
469 .IP \(bu 2.3
471 .\" threads
472 Threads
474 The number of active threads (clients)\&.
477 .RS 4
478 .ie n \{\
479 \h'-04'\(bu\h'+03'\c
481 .el \{\
482 .sp -1
483 .IP \(bu 2.3
485 .\" questions
486 Questions
488 The number of questions (queries) from clients since the server was started\&.
491 .RS 4
492 .ie n \{\
493 \h'-04'\(bu\h'+03'\c
495 .el \{\
496 .sp -1
497 .IP \(bu 2.3
499 .\" slow queries
500 Slow queries
502 The number of queries that have taken more than
503 long_query_time
504 seconds\&. See
505 Section\ \&5.2.5, \(lqThe Slow Query Log\(rq\&.
508 .RS 4
509 .ie n \{\
510 \h'-04'\(bu\h'+03'\c
512 .el \{\
513 .sp -1
514 .IP \(bu 2.3
516 .\" opens
517 Opens
519 The number of tables the server has opened\&.
522 .RS 4
523 .ie n \{\
524 \h'-04'\(bu\h'+03'\c
526 .el \{\
527 .sp -1
528 .IP \(bu 2.3
530 .\" flush tables
531 .\" tables: flush
532 Flush tables
534 The number of
535 flush\-*,
536 refresh, and
537 reload
538 commands the server has executed\&.
541 .RS 4
542 .ie n \{\
543 \h'-04'\(bu\h'+03'\c
545 .el \{\
546 .sp -1
547 .IP \(bu 2.3
549 .\" open tables
550 Open tables
552 The number of tables that currently are open\&.
555 .RS 4
556 .ie n \{\
557 \h'-04'\(bu\h'+03'\c
559 .el \{\
560 .sp -1
561 .IP \(bu 2.3
563 .\" memory use
564 Memory in use
566 The amount of memory allocated directly by
567 \fBmysqld\fR\&. This value is displayed only when MySQL has been compiled with
568 \fB\-\-with\-debug=full\fR\&.
571 .RS 4
572 .ie n \{\
573 \h'-04'\(bu\h'+03'\c
575 .el \{\
576 .sp -1
577 .IP \(bu 2.3
579 .\" maximum memory used
580 Maximum memory used
582 The maximum amount of memory allocated directly by
583 \fBmysqld\fR\&. This value is displayed only when MySQL has been compiled with
584 \fB\-\-with\-debug=full\fR\&.
587 If you execute
588 \fBmysqladmin shutdown\fR
589 when connecting to a local server using a Unix socket file,
590 \fBmysqladmin\fR
591 waits until the server\*(Aqs process ID file has been removed, to ensure that the server has stopped properly\&.
592 .\" mysqladmin command options
593 .\" command options: mysqladmin
594 .\" options: command-line: mysqladmin
595 .\" startup parameters: mysqladmin
597 \fBmysqladmin\fR
598 supports the following options, which can be specified on the command line or in the
599 [mysqladmin]
601 [client]
602 groups of an option file\&.
603 \fBmysqladmin\fR
604 also supports the options for processing option files described at
605 Section\ \&4.2.3.4, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
607 .RS 4
608 .ie n \{\
609 \h'-04'\(bu\h'+03'\c
611 .el \{\
612 .sp -1
613 .IP \(bu 2.3
615 .\" mysqladmin: help option
616 .\" help option: mysqladmin
617 \fB\-\-help\fR,
618 \fB\-?\fR
620 Display a help message and exit\&.
623 .RS 4
624 .ie n \{\
625 \h'-04'\(bu\h'+03'\c
627 .el \{\
628 .sp -1
629 .IP \(bu 2.3
631 .\" mysqladmin: bind-address option
632 .\" bind-address option: mysqladmin
633 \fB\-\-bind\-address=\fR\fB\fIip_address\fR\fR
635 On a computer having multiple network interfaces, this option can be used to select which interface is employed when connecting to the MySQL server\&.
637 This option is supported only in the version of
638 \fBmysqladmin\fR
639 that is supplied with MySQL Cluster, beginning with MySQL Cluster NDB 6\&.3\&.4\&. It is not available in standard MySQL 5\&.1 releases\&.
642 .RS 4
643 .ie n \{\
644 \h'-04'\(bu\h'+03'\c
646 .el \{\
647 .sp -1
648 .IP \(bu 2.3
650 .\" mysqladmin: character-sets-dir option
651 .\" character-sets-dir option: mysqladmin
652 \fB\-\-character\-sets\-dir=\fR\fB\fIpath\fR\fR
654 The directory where character sets are installed\&. See
655 Section\ \&10.5, \(lqCharacter Set Configuration\(rq\&.
658 .RS 4
659 .ie n \{\
660 \h'-04'\(bu\h'+03'\c
662 .el \{\
663 .sp -1
664 .IP \(bu 2.3
666 .\" mysqladmin: compress option
667 .\" compress option: mysqladmin
668 \fB\-\-compress\fR,
669 \fB\-C\fR
671 Compress all information sent between the client and the server if both support compression\&.
674 .RS 4
675 .ie n \{\
676 \h'-04'\(bu\h'+03'\c
678 .el \{\
679 .sp -1
680 .IP \(bu 2.3
682 .\" mysqladmin: count option
683 .\" count option: mysqladmin
684 \fB\-\-count=\fR\fB\fIN\fR\fR,
685 \fB\-c \fR\fB\fIN\fR\fR
687 The number of iterations to make for repeated command execution if the
688 \fB\-\-sleep\fR
689 option is given\&.
692 .RS 4
693 .ie n \{\
694 \h'-04'\(bu\h'+03'\c
696 .el \{\
697 .sp -1
698 .IP \(bu 2.3
700 .\" mysqladmin: debug option
701 .\" debug option: mysqladmin
702 \fB\-\-debug[=\fR\fB\fIdebug_options\fR\fR\fB]\fR,
703 \fB\-# [\fR\fB\fIdebug_options\fR\fR\fB]\fR
705 Write a debugging log\&. A typical
706 \fIdebug_options\fR
707 string is
708 \*(Aqd:t:o,\fIfile_name\fR\*(Aq\&. The default is
709 \*(Aqd:t:o,/tmp/mysqladmin\&.trace\*(Aq\&.
712 .RS 4
713 .ie n \{\
714 \h'-04'\(bu\h'+03'\c
716 .el \{\
717 .sp -1
718 .IP \(bu 2.3
720 .\" mysqladmin: debug-check option
721 .\" debug-check option: mysqladmin
722 \fB\-\-debug\-check\fR
724 Print some debugging information when the program exits\&. This option was added in MySQL 5\&.1\&.21\&.
727 .RS 4
728 .ie n \{\
729 \h'-04'\(bu\h'+03'\c
731 .el \{\
732 .sp -1
733 .IP \(bu 2.3
735 .\" mysqladmin: debug-info option
736 .\" debug-info option: mysqladmin
737 \fB\-\-debug\-info\fR
739 Print debugging information and memory and CPU usage statistics when the program exits\&. This option was added in MySQL 5\&.1\&.14\&.
742 .RS 4
743 .ie n \{\
744 \h'-04'\(bu\h'+03'\c
746 .el \{\
747 .sp -1
748 .IP \(bu 2.3
750 .\" mysqladmin: default-character-set option
751 .\" default-character-set option: mysqladmin
752 \fB\-\-default\-character\-set=\fR\fB\fIcharset_name\fR\fR
755 \fIcharset_name\fR
756 as the default character set\&. See
757 Section\ \&10.5, \(lqCharacter Set Configuration\(rq\&.
760 .RS 4
761 .ie n \{\
762 \h'-04'\(bu\h'+03'\c
764 .el \{\
765 .sp -1
766 .IP \(bu 2.3
768 .\" mysqladmin: force option
769 .\" force option: mysqladmin
770 \fB\-\-force\fR,
771 \fB\-f\fR
773 Do not ask for confirmation for the
774 drop \fIdb_name\fR
775 command\&. With multiple commands, continue even if an error occurs\&.
778 .RS 4
779 .ie n \{\
780 \h'-04'\(bu\h'+03'\c
782 .el \{\
783 .sp -1
784 .IP \(bu 2.3
786 .\" mysqladmin: host option
787 .\" host option: mysqladmin
788 \fB\-\-host=\fR\fB\fIhost_name\fR\fR,
789 \fB\-h \fR\fB\fIhost_name\fR\fR
791 Connect to the MySQL server on the given host\&.
794 .RS 4
795 .ie n \{\
796 \h'-04'\(bu\h'+03'\c
798 .el \{\
799 .sp -1
800 .IP \(bu 2.3
802 .\" mysqladmin: no-beep option
803 .\" no-beep option: mysqladmin
804 \fB\-\-no\-beep\fR,
805 \fB\-b\fR
807 Suppress the warning beep that is emitted by default for errors such as a failure to connect to the server\&. This option was added in MySQL 5\&.1\&.17\&.
810 .RS 4
811 .ie n \{\
812 \h'-04'\(bu\h'+03'\c
814 .el \{\
815 .sp -1
816 .IP \(bu 2.3
818 .\" mysqladmin: password option
819 .\" password option: mysqladmin
820 \fB\-\-password[=\fR\fB\fIpassword\fR\fR\fB]\fR,
821 \fB\-p[\fR\fB\fIpassword\fR\fR\fB]\fR
823 The password to use when connecting to the server\&. If you use the short option form (\fB\-p\fR), you
824 \fIcannot\fR
825 have a space between the option and the password\&. If you omit the
826 \fIpassword\fR
827 value following the
828 \fB\-\-password\fR
830 \fB\-p\fR
831 option on the command line,
832 \fBmysqladmin\fR
833 prompts for one\&.
835 Specifying a password on the command line should be considered insecure\&. See
836 Section\ \&6.1.2.1, \(lqEnd-User Guidelines for Password Security\(rq\&. You can use an option file to avoid giving the password on the command line\&.
839 .RS 4
840 .ie n \{\
841 \h'-04'\(bu\h'+03'\c
843 .el \{\
844 .sp -1
845 .IP \(bu 2.3
847 .\" mysqladmin: pipe option
848 .\" pipe option: mysqladmin
849 \fB\-\-pipe\fR,
850 \fB\-W\fR
852 On Windows, connect to the server using a named pipe\&. This option applies only if the server supports named\-pipe connections\&.
855 .RS 4
856 .ie n \{\
857 \h'-04'\(bu\h'+03'\c
859 .el \{\
860 .sp -1
861 .IP \(bu 2.3
863 .\" mysqladmin: port option
864 .\" port option: mysqladmin
865 \fB\-\-port=\fR\fB\fIport_num\fR\fR,
866 \fB\-P \fR\fB\fIport_num\fR\fR
868 The TCP/IP port number to use for the connection\&.
871 .RS 4
872 .ie n \{\
873 \h'-04'\(bu\h'+03'\c
875 .el \{\
876 .sp -1
877 .IP \(bu 2.3
879 .\" mysqladmin: protocol option
880 .\" protocol option: mysqladmin
881 \fB\-\-protocol={TCP|SOCKET|PIPE|MEMORY}\fR
883 The connection protocol to use for connecting to the server\&. It is useful when the other connection parameters normally would cause a protocol to be used other than the one you want\&. For details on the permissible values, see
884 Section\ \&4.2.2, \(lqConnecting to the MySQL Server\(rq\&.
887 .RS 4
888 .ie n \{\
889 \h'-04'\(bu\h'+03'\c
891 .el \{\
892 .sp -1
893 .IP \(bu 2.3
895 .\" mysqladmin: relative option
896 .\" relative option: mysqladmin
897 \fB\-\-relative\fR,
898 \fB\-r\fR
900 Show the difference between the current and previous values when used with the
901 \fB\-\-sleep\fR
902 option\&. This option works only with the
903 extended\-status
904 command\&.
907 .RS 4
908 .ie n \{\
909 \h'-04'\(bu\h'+03'\c
911 .el \{\
912 .sp -1
913 .IP \(bu 2.3
915 .\" mysqladmin: silent option
916 .\" silent option: mysqladmin
917 \fB\-\-silent\fR,
918 \fB\-s\fR
920 Exit silently if a connection to the server cannot be established\&.
923 .RS 4
924 .ie n \{\
925 \h'-04'\(bu\h'+03'\c
927 .el \{\
928 .sp -1
929 .IP \(bu 2.3
931 .\" mysqladmin: sleep option
932 .\" sleep option: mysqladmin
933 \fB\-\-sleep=\fR\fB\fIdelay\fR\fR,
934 \fB\-i \fR\fB\fIdelay\fR\fR
936 Execute commands repeatedly, sleeping for
937 \fIdelay\fR
938 seconds in between\&. The
939 \fB\-\-count\fR
940 option determines the number of iterations\&. If
941 \fB\-\-count\fR
942 is not given,
943 \fBmysqladmin\fR
944 executes commands indefinitely until interrupted\&.
947 .RS 4
948 .ie n \{\
949 \h'-04'\(bu\h'+03'\c
951 .el \{\
952 .sp -1
953 .IP \(bu 2.3
955 .\" mysqladmin: socket option
956 .\" socket option: mysqladmin
957 \fB\-\-socket=\fR\fB\fIpath\fR\fR,
958 \fB\-S \fR\fB\fIpath\fR\fR
960 For connections to
961 localhost, the Unix socket file to use, or, on Windows, the name of the named pipe to use\&.
964 .RS 4
965 .ie n \{\
966 \h'-04'\(bu\h'+03'\c
968 .el \{\
969 .sp -1
970 .IP \(bu 2.3
972 .\" mysqladmin: SSL options
973 .\" SSL options: mysqladmin
974 \fB\-\-ssl*\fR
976 Options that begin with
977 \fB\-\-ssl\fR
978 specify whether to connect to the server using SSL and indicate where to find SSL keys and certificates\&. See
979 Section\ \&6.3.6.4, \(lqSSL Command Options\(rq\&.
982 .RS 4
983 .ie n \{\
984 \h'-04'\(bu\h'+03'\c
986 .el \{\
987 .sp -1
988 .IP \(bu 2.3
990 .\" mysqladmin: user option
991 .\" user option: mysqladmin
992 \fB\-\-user=\fR\fB\fIuser_name\fR\fR,
993 \fB\-u \fR\fB\fIuser_name\fR\fR
995 The MySQL user name to use when connecting to the server\&.
998 .RS 4
999 .ie n \{\
1000 \h'-04'\(bu\h'+03'\c
1002 .el \{\
1003 .sp -1
1004 .IP \(bu 2.3
1006 .\" mysqladmin: verbose option
1007 .\" verbose option: mysqladmin
1008 \fB\-\-verbose\fR,
1009 \fB\-v\fR
1011 Verbose mode\&. Print more information about what the program does\&.
1014 .RS 4
1015 .ie n \{\
1016 \h'-04'\(bu\h'+03'\c
1018 .el \{\
1019 .sp -1
1020 .IP \(bu 2.3
1022 .\" mysqladmin: version option
1023 .\" version option: mysqladmin
1024 \fB\-\-version\fR,
1025 \fB\-V\fR
1027 Display version information and exit\&.
1030 .RS 4
1031 .ie n \{\
1032 \h'-04'\(bu\h'+03'\c
1034 .el \{\
1035 .sp -1
1036 .IP \(bu 2.3
1038 .\" mysqladmin: vertical option
1039 .\" vertical option: mysqladmin
1040 \fB\-\-vertical\fR,
1041 \fB\-E\fR
1043 Print output vertically\&. This is similar to
1044 \fB\-\-relative\fR, but prints output vertically\&.
1047 .RS 4
1048 .ie n \{\
1049 \h'-04'\(bu\h'+03'\c
1051 .el \{\
1052 .sp -1
1053 .IP \(bu 2.3
1055 .\" mysqladmin: wait option
1056 .\" wait option: mysqladmin
1057 \fB\-\-wait[=\fR\fB\fIcount\fR\fR\fB]\fR,
1058 \fB\-w[\fR\fB\fIcount\fR\fR\fB]\fR
1060 If the connection cannot be established, wait and retry instead of aborting\&. If a
1061 \fIcount\fR
1062 value is given, it indicates the number of times to retry\&. The default is one time\&.
1065 You can also set the following variables by using
1066 \fB\-\-\fR\fB\fIvar_name\fR\fR\fB=\fR\fB\fIvalue\fR\fR
1068 \fB\-\-set\-variable\fR
1069 format is deprecated and is removed in MySQL 5\&.5\&.
1071 .RS 4
1072 .ie n \{\
1073 \h'-04'\(bu\h'+03'\c
1075 .el \{\
1076 .sp -1
1077 .IP \(bu 2.3
1079 .\" connect_timeout variable
1080 .\" timeout: connect_timeout variable
1081 connect_timeout
1083 The maximum number of seconds before connection timeout\&. The default value is 43200 (12 hours)\&.
1086 .RS 4
1087 .ie n \{\
1088 \h'-04'\(bu\h'+03'\c
1090 .el \{\
1091 .sp -1
1092 .IP \(bu 2.3
1094 .\" shutdown_timeout variable
1095 .\" timeout: shutdown_timeout variable
1096 shutdown_timeout
1098 The maximum number of seconds to wait for server shutdown\&. The default value is 3600 (1 hour)\&.
1100 .SH "COPYRIGHT"
1103 Copyright \(co 1997, 2013, Oracle and/or its affiliates. All rights reserved.
1105 This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
1107 This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
1109 You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see http://www.gnu.org/licenses/.
1111 .SH "SEE ALSO"
1112 For more information, please refer to the MySQL Reference Manual,
1113 which may already be installed locally and which is also available
1114 online at http://dev.mysql.com/doc/.
1115 .SH AUTHOR
1116 Oracle Corporation (http://dev.mysql.com/).