Advertisement
kn0tsel

MySQL-05

Nov 13th, 2012
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ESes-MacBook-Pro:bin ESe$ sudo ./mysqladmin5 --user=mysql
  2. ./mysqladmin5  Ver 8.42 Distrib 5.1.66, for apple-darwin11.4.2 on i386
  3. Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
  4.  
  5. Oracle is a registered trademark of Oracle Corporation and/or its
  6. affiliates. Other names may be trademarks of their respective
  7. owners.
  8.  
  9. Administration program for the mysqld daemon.
  10. Usage: ./mysqladmin5 [OPTIONS] command command....
  11.   -c, --count=#       Number of iterations to make. This works with -i
  12.                       (--sleep) only.
  13.   --debug-check       Check memory and open file usage at exit.
  14.   --debug-info        Print some debug info at 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.   -P, --port=#        Port number to use for connection or 0 for default to, in
  29.                       order of preference, my.cnf, $MYSQL_TCP_PORT,
  30.                       /etc/services, built-in default (3306).
  31.   --protocol=name     The protocol to use for connection (tcp, socket, pipe,
  32.                       memory).
  33.   -r, --relative      Show difference between current and previous values when
  34.                       used with -i. Currently only works with extended-status.
  35.   -O, --set-variable=name
  36.                       Change the value of a variable. Please note that this
  37.                       option is deprecated; you can set variables directly with
  38.                       --variable-name=value.
  39.   -s, --silent        Silently exit if one can't connect to server.
  40.  -S, --socket=name   The socket file to use for connection.
  41.  -i, --sleep=#       Execute commands repeatedly with a sleep between.
  42.  --ssl               Enable SSL for connection (automatically enabled with
  43.                      other flags).Disable with --skip-ssl.
  44.  --ssl-ca=name       CA file in PEM format (check OpenSSL docs, implies
  45.                      --ssl).
  46.  --ssl-capath=name   CA directory (check OpenSSL docs, implies --ssl).
  47.  --ssl-cert=name     X509 cert in PEM format (implies --ssl).
  48.  --ssl-cipher=name   SSL cipher to use (implies --ssl).
  49.  --ssl-key=name      X509 key in PEM format (implies --ssl).
  50.  --ssl-verify-server-cert
  51.                      Verify server's "Common Name" in its cert against
  52.                       hostname used when connecting. This option is disabled by
  53.                       default.
  54.   -u, --user=name     User for login if not current user.
  55.   -v, --verbose       Write more information.
  56.   -V, --version       Output version information and exit.
  57.   -E, --vertical      Print output vertically. Is similar to --relative, but
  58.                       prints output vertically.
  59.   -w, --wait[=#]      Wait and retry if connection is down.
  60.   --connect_timeout=#
  61.   --shutdown_timeout=#
  62.  
  63. Variables (--variable-name=value)
  64. and boolean options {FALSE|TRUE}  Value (after reading options)
  65. --------------------------------- -----------------------------
  66. count                             0
  67. debug-check                       FALSE
  68. debug-info                        FALSE
  69. force                             FALSE
  70. compress                          FALSE
  71. character-sets-dir                (No default value)
  72. default-character-set             (No default value)
  73. host                              (No default value)
  74. no-beep                           FALSE
  75. port                              0
  76. relative                          FALSE
  77. socket                            (No default value)
  78. sleep                             0
  79. ssl                               FALSE
  80. ssl-ca                            (No default value)
  81. ssl-capath                        (No default value)
  82. ssl-cert                          (No default value)
  83. ssl-cipher                        (No default value)
  84. ssl-key                           (No default value)
  85. ssl-verify-server-cert            FALSE
  86. user                              mysql
  87. verbose                           FALSE
  88. vertical                          FALSE
  89. connect_timeout                   43200
  90. shutdown_timeout                  3600
  91.  
  92. Default options are read from the following files in the given order:
  93. /etc/my.cnf /etc/mysql/my.cnf /opt/local/etc/mysql5/my.cnf ~/.my.cnf
  94. The following groups are read: mysqladmin client
  95. The following options may be given as the first argument:
  96. --print-defaults        Print the program argument list and exit.
  97. --no-defaults           Don't read default options from any option file.
  98. --defaults-file=#       Only read default options from the given file #.
  99. --defaults-extra-file=# Read this file after the global files are read.
  100.  
  101. Where command is a one or more of: (Commands may be shortened)
  102.   create databasename   Create a new database
  103.   debug         Instruct server to write debug information to log
  104.   drop databasename Delete a database and all its tables
  105.  extended-status       Gives an extended status message from the server
  106.  flush-hosts           Flush all cached hosts
  107.  flush-logs            Flush all logs
  108.   flush-status      Clear status variables
  109.  flush-tables          Flush all tables
  110.  flush-threads         Flush the thread cache
  111.  flush-privileges      Reload grant tables (same as reload)
  112.   kill id,id,...    Kill mysql threads
  113.  password new-password Change old password to new-password, MySQL 4.1 hashing.
  114.  old-password new-password Change old password to new-password in old format.
  115.  
  116.   ping          Check if mysqld is alive
  117.   processlist       Show list of active threads in server
  118.   reload        Reload grant tables
  119.   refresh       Flush all tables and close and open logfiles
  120.   shutdown      Take server down
  121.   status        Gives a short status message from the server
  122.   start-slave       Start slave
  123.   stop-slave        Stop slave
  124.  variables             Prints variables available
  125.   version       Get version info from server
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement