运维联盟俱乐部

 找回密码
 立即注册
查看: 2237|回复: 0

command-mysqladmin

[复制链接]
  • TA的每日心情
    开心
    2023-8-9 11:05
  • 发表于 2021-12-15 16:05:07 | 显示全部楼层 |阅读模式
    1. [root@vm1 bin]# ./mysqladmin --help
    2. ./mysqladmin  Ver 8.0.27 for Linux on x86_64 (MySQL Community Server - GPL)
    3. Copyright (c) 2000, 2021, Oracle and/or its affiliates.

    4. Oracle is a registered trademark of Oracle Corporation and/or its
    5. affiliates. Other names may be trademarks of their respective
    6. owners.

    7. Administration program for the mysqld daemon.
    8. Usage: ./mysqladmin [OPTIONS] command command....
    9.   --bind-address=name IP address to bind to.
    10.   -c, --count=#       Number of iterations to make. This works with -i
    11.                       (--sleep) only.
    12.   -#, --debug[=#]     This is a non-debug version. Catch this and exit.
    13.   --debug-check       This is a non-debug version. Catch this and exit.
    14.   --debug-info        This is a non-debug version. Catch this and exit.
    15.   -f, --force         Don't ask for confirmation on drop database; with
    16.                       multiple commands, continue even if an error occurs.
    17.   -C, --compress      Use compression in server/client protocol.
    18.   --character-sets-dir=name
    19.                       Directory for character set files.
    20.   --default-character-set=name
    21.                       Set the default character set.
    22.   -?, --help          Display this help and exit.
    23.   -h, --host=name     Connect to host.
    24.   -b, --no-beep       Turn off beep on error.
    25.   -p, --password[=name]
    26.                       Password to use when connecting to server. If password is
    27.                       not given it's asked from the tty.
    28.   -,, --password1[=name]
    29.                       Password for first factor authentication plugin.
    30.   -,, --password2[=name]
    31.                       Password for second factor authentication plugin.
    32.   -,, --password3[=name]
    33.                       Password for third factor authentication plugin.
    34.   -P, --port=#        Port number to use for connection or 0 for default to, in
    35.                       order of preference, my.cnf, $MYSQL_TCP_PORT,
    36.                       /etc/services, built-in default (3306).
    37.   --protocol=name     The protocol to use for connection (tcp, socket, pipe,
    38.                       memory).
    39.   -r, --relative      Show difference between current and previous values when
    40.                       used with -i. Currently only works with extended-status.
    41.   -s, --silent        Silently exit if one can't connect to server.
    42.   -S, --socket=name   The socket file to use for connection.
    43.   -i, --sleep=#       Execute commands repeatedly with a sleep between.
    44.   --ssl-mode=name     SSL connection mode.
    45.   --ssl-ca=name       CA file in PEM format.
    46.   --ssl-capath=name   CA directory.
    47.   --ssl-cert=name     X509 cert in PEM format.
    48.   --ssl-cipher=name   SSL cipher to use.
    49.   --ssl-key=name      X509 key in PEM format.
    50.   --ssl-crl=name      Certificate revocation list.
    51.   --ssl-crlpath=name  Certificate revocation list path.
    52.   --tls-version=name  TLS version to use, permitted values are: TLSv1, TLSv1.1,
    53.                       TLSv1.2, TLSv1.3
    54.   --ssl-fips-mode=name
    55.                       SSL FIPS mode (applies only for OpenSSL); permitted
    56.                       values are: OFF, ON, STRICT
    57.   --tls-ciphersuites=name
    58.                       TLS v1.3 cipher to use.
    59.   --server-public-key-path=name
    60.                       File path to the server public RSA key in PEM format.
    61.   --get-server-public-key
    62.                       Get server public key
    63.   -u, --user=name     User for login if not current user.
    64.   -v, --verbose       Write more information.
    65.   -V, --version       Output version information and exit.
    66.   -E, --vertical      Print output vertically. Is similar to --relative, but
    67.                       prints output vertically.
    68.   -w, --wait[=#]      Wait and retry if connection is down.
    69.   --connect-timeout=#
    70.   --shutdown-timeout=#
    71.   --plugin-dir=name   Directory for client-side plugins.
    72.   --default-auth=name Default authentication client-side plugin to use.
    73.   --enable-cleartext-plugin
    74.                       Enable/disable the clear text authentication plugin.
    75.   --show-warnings     Show warnings after execution
    76.   --compression-algorithms=name
    77.                       Use compression algorithm in server/client protocol.
    78.                       Valid values are any combination of
    79.                       'zstd','zlib','uncompressed'.
    80.   --zstd-compression-level=#
    81.                       Use this compression level in the client/server protocol,
    82.                       in case --compression-algorithms=zstd. Valid range is
    83.                       between 1 and 22, inclusive. Default is 3.

    84. Variables (--variable-name=value)
    85. and boolean options {FALSE|TRUE}  Value (after reading options)
    86. --------------------------------- ----------------------------------------
    87. bind-address                      (No default value)
    88. count                             0
    89. force                             FALSE
    90. compress                          FALSE
    91. character-sets-dir                (No default value)
    92. default-character-set             auto
    93. host                              (No default value)
    94. no-beep                           FALSE
    95. port                              0
    96. relative                          FALSE
    97. socket                            (No default value)
    98. sleep                             0
    99. ssl-ca                            (No default value)
    100. ssl-capath                        (No default value)
    101. ssl-cert                          (No default value)
    102. ssl-cipher                        (No default value)
    103. ssl-key                           (No default value)
    104. ssl-crl                           (No default value)
    105. ssl-crlpath                       (No default value)
    106. tls-version                       (No default value)
    107. tls-ciphersuites                  (No default value)
    108. server-public-key-path            (No default value)
    109. get-server-public-key             FALSE
    110. user                              (No default value)
    111. verbose                           FALSE
    112. vertical                          FALSE
    113. connect-timeout                   43200
    114. shutdown-timeout                  3600
    115. plugin-dir                        (No default value)
    116. default-auth                      (No default value)
    117. enable-cleartext-plugin           FALSE
    118. show-warnings                     FALSE
    119. compression-algorithms            (No default value)
    120. zstd-compression-level            3

    121. Default options are read from the following files in the given order:
    122. /etc/my.cnf /etc/mysql/my.cnf /usr/local/mysql/etc/my.cnf ~/.my.cnf
    123. The following groups are read: mysqladmin client
    124. The following options may be given as the first argument:
    125. --print-defaults        Print the program argument list and exit.
    126. --no-defaults           Don't read default options from any option file,
    127.                         except for login file.
    128. --defaults-file=#       Only read default options from the given file #.
    129. --defaults-extra-file=# Read this file after the global files are read.
    130. --defaults-group-suffix=#
    131.                         Also read groups with concat(group, suffix)
    132. --login-path=#          Read this path from the login file.

    133. Where command is a one or more of: (Commands may be shortened)
    134.   create databasename        Create a new database
    135.   debug                        Instruct server to write debug information to log
    136.   drop databasename        Delete a database and all its tables
    137.   extended-status       Gives an extended status message from the server
    138.   flush-hosts           Flush all cached hosts
    139.   flush-logs            Flush all logs
    140.   flush-status                Clear status variables
    141.   flush-tables          Flush all tables
    142.   flush-threads         Flush the thread cache
    143.   flush-privileges      Reload grant tables (same as reload)
    144.   kill id,id,...        Kill mysql threads
    145.   password [new-password] Change old password to new-password in current format
    146.   ping                        Check if mysqld is alive
    147.   processlist                Show list of active threads in server
    148.   reload                Reload grant tables
    149.   refresh                Flush all tables and close and open logfiles
    150.   shutdown                Take server down
    151.   status                Gives a short status message from the server
    152.   start-replica                Start replication
    153.   start-slave                Deprecated: use start-replica instead
    154.   stop-replica                Stop replication
    155.   stop-slave                Deprecated: use stop-replica instead
    156.   variables             Prints variables available
    157.   version                Get version info from server
    复制代码



    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    运维联盟俱乐部 ( 冀ICP备19036648号 )

    GMT+8, 2024-5-12 17:11 , Processed in 0.049047 second(s), 22 queries , Gzip On.

    Powered by Discuz! X3.4

    © 2001-2023 Discuz! Team.

    快速回复 返回顶部 返回列表