Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.77 KB | None | 0 0
  1. erik@mr-smith:~$ mysql -u root -p ********* hyperserv < ~/hyperserv/samplecfg/hypershade.sql
  2. mysql Ver 14.14 Distrib 5.1.54, for debian-linux-gnu (i686) using readline 6.2
  3. Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
  4. This software comes with ABSOLUTELY NO WARRANTY. This is free software,
  5. and you are welcome to modify and redistribute it under the GPL v2 license
  6. Usage: mysql [OPTIONS] [database]
  7. -?, --help Display this help and exit.
  8. -I, --help Synonym for -?
  9. --auto-rehash Enable automatic rehashing. One doesn't need to use
  10. 'rehash' to get table and field completion, but startup
  11. and reconnecting may take a longer time. Disable with
  12. --disable-auto-rehash.
  13. -A, --no-auto-rehash
  14. No automatic rehashing. One has to use 'rehash' to get
  15. table and field completion. This gives a quicker start of
  16. mysql and disables rehashing on reconnect.
  17. -B, --batch Don't use history file. Disable interactive behavior.
  18. (Enables --silent.)
  19. --character-sets-dir=name
  20. Directory for character set files.
  21. --column-type-info Display column type information.
  22. -c, --comments Preserve comments. Send comments to the server. The
  23. default is --skip-comments (discard comments), enable
  24. with --comments.
  25. -C, --compress Use compression in server/client protocol.
  26. -#, --debug[=#] This is a non-debug version. Catch this and exit.
  27. --debug-check Check memory and open file usage at exit.
  28. -T, --debug-info Print some debug info at exit.
  29. -D, --database=name Database to use.
  30. --default-character-set=name
  31. Set the default character set.
  32. --delimiter=name Delimiter to be used.
  33. -e, --execute=name Execute command and quit. (Disables --force and history
  34. file.)
  35. -E, --vertical Print the output of a query (rows) vertically.
  36. -f, --force Continue even if we get an SQL error.
  37. -G, --named-commands
  38. Enable named commands. Named commands mean this program's
  39. internal commands; see mysql> help . When enabled, the
  40. named commands can be used from any line of the query,
  41. otherwise only from the first line, before an enter.
  42. Disable with --disable-named-commands. This option is
  43. disabled by default.
  44. -g, --no-named-commands
  45. Named commands are disabled. Use \* form only, or use
  46. named commands only in the beginning of a line ending
  47. with a semicolon (;). Since version 10.9, the client now
  48. starts with this option ENABLED by default. Disable with
  49. '-G'. Long format commands still work from the first
  50. line. WARNING: option deprecated; use
  51. --disable-named-commands instead.
  52. -i, --ignore-spaces Ignore space after function names.
  53. --local-infile Enable/disable LOAD DATA LOCAL INFILE.
  54. -b, --no-beep Turn off beep on error.
  55. -h, --host=name Connect to host.
  56. -H, --html Produce HTML output.
  57. -X, --xml Produce XML output.
  58. --line-numbers Write line numbers for errors.
  59. -L, --skip-line-numbers
  60. Don't write line number for errors.
  61. -n, --unbuffered Flush buffer after each query.
  62. --column-names Write column names in results.
  63. -N, --skip-column-names
  64. Don't write column names in results.
  65. -O, --set-variable=name
  66. Change the value of a variable. Please note that this
  67. option is deprecated; you can set variables directly with
  68. --variable-name=value.
  69. --sigint-ignore Ignore SIGINT (CTRL-C).
  70. -o, --one-database Only update the default database. This is useful for
  71. skipping updates to other database in the update log.
  72. --pager[=name] Pager to use to display results. If you don't supply an
  73. option, the default pager is taken from your ENV variable
  74. PAGER. Valid pagers are less, more, cat [> filename],
  75. etc. See interactive help (\h) also. This option does not
  76. work in batch mode. Disable with --disable-pager. This
  77. option is disabled by default.
  78. --no-pager Disable pager and print to stdout. See interactive help
  79. (\h) also. WARNING: option deprecated; use
  80. --disable-pager instead.
  81. -p, --password[=name]
  82. Password to use when connecting to server. If password is
  83. not given it's asked from the tty.
  84. -P, --port=# Port number to use for connection or 0 for default to, in
  85. order of preference, my.cnf, $MYSQL_TCP_PORT,
  86. /etc/services, built-in default (3306).
  87. --prompt=name Set the mysql prompt to this value.
  88. --protocol=name The protocol to use for connection (tcp, socket, pipe,
  89. memory).
  90. -q, --quick Don't cache result, print it row by row. This may slow
  91. down the server if the output is suspended. Doesn't use
  92. history file.
  93. -r, --raw Write fields without conversion. Used with --batch.
  94. --reconnect Reconnect if the connection is lost. Disable with
  95. --disable-reconnect. This option is enabled by default.
  96. -s, --silent Be more silent. Print results with a tab as separator,
  97. each row on new line.
  98. -S, --socket=name The socket file to use for connection.
  99. --ssl Enable SSL for connection (automatically enabled with
  100. other flags).Disable with --skip-ssl.
  101. --ssl-ca=name CA file in PEM format (check OpenSSL docs, implies
  102. --ssl).
  103. --ssl-capath=name CA directory (check OpenSSL docs, implies --ssl).
  104. --ssl-cert=name X509 cert in PEM format (implies --ssl).
  105. --ssl-cipher=name SSL cipher to use (implies --ssl).
  106. --ssl-key=name X509 key in PEM format (implies --ssl).
  107. --ssl-verify-server-cert
  108. Verify server's "Common Name" in its cert against
  109. hostname used when connecting. This option is disabled by
  110. default.
  111. -t, --table Output in table format.
  112. --tee=name Append everything into outfile. See interactive help (\h)
  113. also. Does not work in batch mode. Disable with
  114. --disable-tee. This option is disabled by default.
  115. --no-tee Disable outfile. See interactive help (\h) also. WARNING:
  116. Option deprecated; use --disable-tee instead.
  117. -u, --user=name User for login if not current user.
  118. -U, --safe-updates Only allow UPDATE and DELETE that uses keys.
  119. -U, --i-am-a-dummy Synonym for option --safe-updates, -U.
  120. -v, --verbose Write more. (-v -v -v gives the table output format).
  121. -V, --version Output version information and exit.
  122. -w, --wait Wait and retry if connection is down.
  123. --connect_timeout=# Number of seconds before connection timeout.
  124. --max_allowed_packet=#
  125. The maximum packet length to send to or receive from
  126. server.
  127. --net_buffer_length=#
  128. The buffer size for TCP/IP and socket communication.
  129. --select_limit=# Automatic limit for SELECT when using --safe-updates.
  130. --max_join_size=# Automatic limit for rows in a join when using
  131. --safe-updates.
  132. --secure-auth Refuse client connecting to server if it uses old
  133. (pre-4.1.1) protocol.
  134. --server-arg=name Send embedded server this as a parameter.
  135. --show-warnings Show warnings after every statement.
  136.  
  137. Default options are read from the following files in the given order:
  138. /etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf
  139. The following groups are read: mysql client
  140. The following options may be given as the first argument:
  141. --print-defaults Print the program argument list and exit.
  142. --no-defaults Don't read default options from any option file.
  143. --defaults-file=# Only read default options from the given file #.
  144. --defaults-extra-file=# Read this file after the global files are read.
  145.  
  146. Variables (--variable-name=value)
  147. and boolean options {FALSE|TRUE} Value (after reading options)
  148. --------------------------------- -----------------------------
  149. auto-rehash TRUE
  150. character-sets-dir (No default value)
  151. column-type-info FALSE
  152. comments FALSE
  153. compress FALSE
  154. debug-check FALSE
  155. debug-info FALSE
  156. database (No default value)
  157. default-character-set latin1
  158. delimiter ;
  159. vertical FALSE
  160. force FALSE
  161. named-commands FALSE
  162. ignore-spaces FALSE
  163. local-infile FALSE
  164. no-beep FALSE
  165. host (No default value)
  166. html FALSE
  167. xml FALSE
  168. line-numbers TRUE
  169. unbuffered FALSE
  170. column-names TRUE
  171. sigint-ignore FALSE
  172. port 3306
  173. prompt mysql>
  174. quick FALSE
  175. raw FALSE
  176. reconnect FALSE
  177. socket /var/run/mysqld/mysqld.sock
  178. ssl FALSE
  179. ssl-ca (No default value)
  180. ssl-capath (No default value)
  181. ssl-cert (No default value)
  182. ssl-cipher (No default value)
  183. ssl-key (No default value)
  184. ssl-verify-server-cert FALSE
  185. table FALSE
  186. user root
  187. safe-updates FALSE
  188. i-am-a-dummy FALSE
  189. connect_timeout 0
  190. max_allowed_packet 16777216
  191. net_buffer_length 16384
  192. select_limit 1000
  193. max_join_size 1000000
  194. secure-auth FALSE
  195. show-warnings FALSE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement