GRANT 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. mysql Ver 15.1 Distrib 10.3.31-MariaDB, for debian-linux-gnu (i686) using readline 5.2
  2. Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
  3. Usage: mysql [OPTIONS] [database]
  4. Default options are read from the following files in the given order:
  5. /etc/my.cnf /etc/mysql/my.cnf ~/.my.cnf
  6. The following groups are read: mysql client client-server client-mariadb
  7. The following options may be given as the first argument:
  8. --print-defaults Print the program argument list and exit.
  9. --no-defaults Don't read default options from any option file.
  10. The following specify which files/extra groups are read (specified before remaining options):
  11. --defaults-file=# Only read default options from the given file #.
  12. --defaults-extra-file=# Read this file after the global files are read.
  13. --defaults-group-suffix=# Additionally read default groups with # appended as a suffix.
  14. -?, --help Display this help and exit.
  15. -I, --help Synonym for -?
  16. --abort-source-on-error
  17. Abort 'source filename' operations in case of errors
  18. --auto-rehash Enable automatic rehashing. One doesn't need to use
  19. 'rehash' to get table and field completion, but startup
  20. and reconnecting may take a longer time. Disable with
  21. --disable-auto-rehash.
  22. (Defaults to on; use --skip-auto-rehash to disable.)
  23. -A, --no-auto-rehash
  24. No automatic rehashing. One has to use 'rehash' to get
  25. table and field completion. This gives a quicker start of
  26. mysql and disables rehashing on reconnect.
  27. --auto-vertical-output
  28. Automatically switch to vertical output mode if the
  29. result is wider than the terminal width.
  30. -B, --batch Don't use history file. Disable interactive behavior.
  31. (Enables --silent.)
  32. --binary-as-hex Print binary data as hex
  33. --character-sets-dir=name
  34. Directory for character set files.
  35. --column-type-info Display column type information.
  36. -c, --comments Preserve comments. Send comments to the server. The
  37. default is --skip-comments (discard comments), enable
  38. with --comments.
  39. -C, --compress Use compression in server/client protocol.
  40. -#, --debug[=#] This is a non-debug version. Catch this and exit.
  41. --debug-check Check memory and open file usage at exit.
  42. -T, --debug-info Print some debug info at exit.
  43. -D, --database=name Database to use.
  44. --default-character-set=name
  45. Set the default character set.
  46. --delimiter=name Delimiter to be used.
  47. -e, --execute=name Execute command and quit. (Disables --force and history
  48. file.)
  49. -E, --vertical Print the output of a query (rows) vertically.
  50. -f, --force Continue even if we get an SQL error. Sets
  51. abort-source-on-error to 0
  52. -G, --named-commands
  53. Enable named commands. Named commands mean this program's
  54. internal commands; see mysql> help . When enabled, the
  55. named commands can be used from any line of the query,
  56. otherwise only from the first line, before an enter.
  57. Disable with --disable-named-commands. This option is
  58. disabled by default.
  59. -i, --ignore-spaces Ignore space after function names.
  60. --init-command=name SQL Command to execute when connecting to MySQL server.
  61. Will automatically be re-executed when reconnecting.
  62. --local-infile Enable/disable LOAD DATA LOCAL INFILE.
  63. -b, --no-beep Turn off beep on error.
  64. -h, --host=name Connect to host.
  65. -H, --html Produce HTML output.
  66. -X, --xml Produce XML output.
  67. --line-numbers Write line numbers for errors.
  68. (Defaults to on; use --skip-line-numbers to disable.)
  69. -L, --skip-line-numbers
  70. Don't write line number for errors.
  71. -n, --unbuffered Flush buffer after each query.
  72. --column-names Write column names in results.
  73. (Defaults to on; use --skip-column-names to disable.)
  74. -N, --skip-column-names
  75. Don't write column names in results.
  76. --sigint-ignore Ignore SIGINT (CTRL-C).
  77. -o, --one-database Ignore statements except those that occur while the
  78. default database is the one named at the command line.
  79. --pager[=name] Pager to use to display results. If you don't supply an
  80. option, the default pager is taken from your ENV variable
  81. PAGER. Valid pagers are less, more, cat [> filename],
  82. etc. See interactive help (\h) also. This option does not
  83. work in batch mode. Disable with --disable-pager. This
  84. option is disabled by default.
  85. -p, --password[=name]
  86. Password to use when connecting to server. If password is
  87. not given it's asked from the tty.
  88. -P, --port=# Port number to use for connection or 0 for default to, in
  89. order of preference, my.cnf, $MYSQL_TCP_PORT,
  90. /etc/services, built-in default (3306).
  91. --progress-reports Get progress reports for long running commands (like
  92. ALTER TABLE)
  93. (Defaults to on; use --skip-progress-reports to disable.)
  94. --prompt=name Set the mysql prompt to this value.
  95. --protocol=name The protocol to use for connection (tcp, socket, pipe,
  96. memory).
  97. -q, --quick Don't cache result, print it row by row. This may slow
  98. down the server if the output is suspended. Doesn't use
  99. history file.
  100. -r, --raw Write fields without conversion. Used with --batch.
  101. --reconnect Reconnect if the connection is lost. Disable with
  102. --disable-reconnect. This option is enabled by default.
  103. (Defaults to on; use --skip-reconnect to disable.)
  104. -s, --silent Be more silent. Print results with a tab as separator,
  105. each row on new line.
  106. -S, --socket=name The socket file to use for connection.
  107. --ssl Enable SSL for connection (automatically enabled with
  108. other flags).
  109. --ssl-ca=name CA file in PEM format (check OpenSSL docs, implies
  110. --ssl).
  111. --ssl-capath=name CA directory (check OpenSSL docs, implies --ssl).
  112. --ssl-cert=name X509 cert in PEM format (implies --ssl).
  113. --ssl-cipher=name SSL cipher to use (implies --ssl).
  114. --ssl-key=name X509 key in PEM format (implies --ssl).
  115. --ssl-crl=name Certificate revocation list (implies --ssl).
  116. --ssl-crlpath=name Certificate revocation list path (implies --ssl).
  117. --ssl-verify-server-cert
  118. Verify server's "Common Name" in its cert against
  119. hostname used when connecting. This option is disabled by
  120. default.
  121. -t, --table Output in table format.
  122. --tee=name Append everything into outfile. See interactive help (\h)
  123. also. Does not work in batch mode. Disable with
  124. --disable-tee. This option is disabled by default.
  125. -u, --user=name User for login if not current user.
  126. -U, --safe-updates Only allow UPDATE and DELETE that uses keys.
  127. -U, --i-am-a-dummy Synonym for option --safe-updates, -U.
  128. -v, --verbose Write more. (-v -v -v gives the table output format).
  129. -V, --version Output version information and exit.
  130. -w, --wait Wait and retry if connection is down.
  131. --connect-timeout=# Number of seconds before connection timeout.
  132. --max-allowed-packet=#
  133. The maximum packet length to send to or receive from
  134. server.
  135. --net-buffer-length=#
  136. The buffer size for TCP/IP and socket communication.
  137. --select-limit=# Automatic limit for SELECT when using --safe-updates.
  138. --max-join-size=# Automatic limit for rows in a join when using
  139. --safe-updates.
  140. --secure-auth Refuse client connecting to server if it uses old
  141. (pre-4.1.1) protocol.
  142. --server-arg=name Send embedded server this as a parameter.
  143. --show-warnings Show warnings after every statement.
  144. --plugin-dir=name Directory for client-side plugins.
  145. --default-auth=name Default authentication client-side plugin to use.
  146. --binary-mode By default, ASCII '\0' is disallowed and '\r\n' is
  147. translated to '\n'. This switch turns off both features,
  148. and also turns off parsing of all clientcommands except
  149. \C and DELIMITER, in non-interactive mode (for input
  150. piped to mysql or loaded using the 'source' command).
  151. This is necessary when processing output from mysqlbinlog
  152. that may contain blobs.
  153. Variables (--variable-name=value)
  154. and boolean options {FALSE|TRUE} Value (after reading options)
  155. --------------------------------- ----------------------------------------
  156. abort-source-on-error FALSE
  157. auto-rehash TRUE
  158. auto-vertical-output FALSE
  159. binary-as-hex FALSE
  160. character-sets-dir (No default value)
  161. column-type-info FALSE
  162. comments FALSE
  163. compress FALSE
  164. debug-check FALSE
  165. debug-info FALSE
  166. database (No default value)
  167. default-character-set utf8mb4
  168. delimiter ;
  169. vertical FALSE
  170. force FALSE
  171. named-commands FALSE
  172. ignore-spaces FALSE
  173. init-command (No default value)
  174. local-infile FALSE
  175. no-beep FALSE
  176. host (No default value)
  177. html FALSE
  178. xml FALSE
  179. line-numbers TRUE
  180. unbuffered FALSE
  181. column-names TRUE
  182. sigint-ignore FALSE
  183. port 0
  184. progress-reports FALSE
  185. prompt \N [\d]>
  186. quick FALSE
  187. raw FALSE
  188. reconnect FALSE
  189. socket /var/run/mysqld/mysqld.sock
  190. ssl FALSE
  191. ssl-ca (No default value)
  192. ssl-capath (No default value)
  193. ssl-cert (No default value)
  194. ssl-cipher (No default value)
  195. ssl-key (No default value)
  196. ssl-crl (No default value)
  197. ssl-crlpath (No default value)
  198. ssl-verify-server-cert FALSE
  199. table FALSE
  200. user (No default value)
  201. safe-updates FALSE
  202. i-am-a-dummy FALSE
  203. connect-timeout 0
  204. max-allowed-packet 16777216
  205. net-buffer-length 16384
  206. select-limit 1000
  207. max-join-size 1000000
  208. secure-auth FALSE
  209. show-warnings FALSE
  210. plugin-dir (No default value)
  211. default-auth (No default value)
  212. binary-mode FALSE