1. [oracle@enmo ~]$ mysql --help
  2. mysql Ver 14.14 Distrib 5.6.25, for Linux (x86_64) using EditLine wrapper
  3. Copyright (c) 2000, 2015, 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. Usage: mysql [OPTIONS] [database]
  10. -?, --help Display this help and exit.
  11. -I, --help Synonym for -?
  12. --auto-rehash Enable automatic rehashing. One doesn't need to use
  13. 'rehash' to get table and field completion, but startup
  14. and reconnecting may take a longer time. Disable with
  15. --disable-auto-rehash.
  16. (Defaults to on; use --skip-auto-rehash to disable.)
  17. -A, --no-auto-rehash
  18. No automatic rehashing. One has to use 'rehash' to get
  19. table and field completion. This gives a quicker start of
  20. mysql and disables rehashing on reconnect.
  21. --auto-vertical-output
  22. Automatically switch to vertical output mode if the
  23. result is wider than the terminal width.
  24. -B, --batch Don't use history file. Disable interactive behavior.
  25. (Enables --silent.)
  26. --bind-address=name IP address to bind to.
  27. --character-sets-dir=name
  28. Directory for character set files.
  29. --column-type-info Display column type information.
  30. -c, --comments Preserve comments. Send comments to the server. The
  31. default is --skip-comments (discard comments), enable
  32. with --comments.
  33. -C, --compress Use compression in server/client protocol.
  34. -#, --debug[=#] This is a non-debug version. Catch this and exit.
  35. --debug-check Check memory and open file usage at exit.
  36. -T, --debug-info Print some debug info at exit.
  37. -D, --database=name Database to use.
  38. --default-character-set=name
  39. Set the default character set.
  40. --delimiter=name Delimiter to be used.
  41. --enable-cleartext-plugin
  42. Enable/disable the clear text authentication plugin.
  43. -e, --execute=name Execute command and quit. (Disables --force and history
  44. file.)
  45. -E, --vertical Print the output of a query (rows) vertically.
  46. -f, --force Continue even if we get an SQL error.
  47. -G, --named-commands
  48. Enable named commands. Named commands mean this program's
  49. internal commands; see mysql> help . When enabled, the
  50. named commands can be used from any line of the query,
  51. otherwise only from the first line, before an enter.
  52. Disable with --disable-named-commands. This option is
  53. disabled by default.
  54. -i, --ignore-spaces Ignore space after function names.
  55. --init-command=name SQL Command to execute when connecting to MySQL server.
  56. Will automatically be re-executed when reconnecting.
  57. --local-infile Enable/disable LOAD DATA LOCAL INFILE.
  58. -b, --no-beep Turn off beep on error.
  59. -h, --host=name Connect to host.
  60. -H, --html Produce HTML output.
  61. -X, --xml Produce XML output.
  62. --line-numbers Write line numbers for errors.
  63. (Defaults to on; use --skip-line-numbers to disable.)
  64. -L, --skip-line-numbers
  65. Don't write line number for errors.
  66. -n, --unbuffered Flush buffer after each query.
  67. --column-names Write column names in results.
  68. (Defaults to on; use --skip-column-names to disable.)
  69. -N, --skip-column-names
  70. Don't write column names in results.
  71. --sigint-ignore Ignore SIGINT (CTRL-C).
  72. -o, --one-database Ignore statements except those that occur while the
  73. default database is the one named at the command line.
  74. --pager[=name] Pager to use to display results. If you don't supply an
  75. option, the default pager is taken from your ENV variable
  76. PAGER. Valid pagers are less, more, cat [> filename],
  77. etc. See interactive help (\h) also. This option does not
  78. work in batch mode. Disable with --disable-pager. This
  79. option is disabled by default.
  80. -p, --password[=name]
  81. Password to use when connecting to server. If password is
  82. not given it's asked from the tty.
  83. -P, --port=# Port number to use for connection or 0 for default to, in
  84. order of preference, my.cnf, $MYSQL_TCP_PORT,
  85. /etc/services, built-in default (3306).
  86. --prompt=name Set the mysql prompt to this value.
  87. --protocol=name The protocol to use for connection (tcp, socket, pipe,
  88. memory).
  89. -q, --quick Don't cache result, print it row by row. This may slow
  90. down the server if the output is suspended. Doesn't use
  91. history file.
  92. -r, --raw Write fields without conversion. Used with --batch.
  93. --reconnect Reconnect if the connection is lost. Disable with
  94. --disable-reconnect. This option is enabled by default.
  95. (Defaults to on; use --skip-reconnect to disable.)
  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).
  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-crl=name Certificate revocation list (implies --ssl).
  108. --ssl-crlpath=name Certificate revocation list path (implies --ssl).
  109. --ssl-verify-server-cert
  110. Verify server's "Common Name" in its cert against
  111. hostname used when connecting. This option is disabled by
  112. default.
  113. -t, --table Output in table format.
  114. --tee=name Append everything into outfile. See interactive help (\h)
  115. also. Does not work in batch mode. Disable with
  116. --disable-tee. This option is disabled by default.
  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. (Defaults to on; use --skip-secure-auth to disable.)
  135. --server-arg=name Send embedded server this as a parameter.
  136. --show-warnings Show warnings after every statement.
  137. --plugin-dir=name Directory for client-side plugins.
  138. --default-auth=name Default authentication client-side plugin to use.
  139. --histignore=name A colon-separated list of patterns to keep statements
  140. from getting logged into mysql history.
  141. --binary-mode By default, ASCII '\0' is disallowed and '\r\n' is
  142. translated to '\n'. This switch turns off both features,
  143. and also turns off parsing of all clientcommands except
  144. \C and DELIMITER, in non-interactive mode (for input
  145. piped to mysql or loaded using the 'source' command).
  146. This is necessary when processing output from mysqlbinlog
  147. that may contain blobs.
  148. --connect-expired-password
  149. Notify the server that this client is prepared to handle
  150. expired password sandbox mode.
  151.  
  152. Default options are read from the following files in the given order:
  153. /etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf
  154. The following groups are read: mysql client
  155. The following options may be given as the first argument:
  156. --print-defaults Print the program argument list and exit.
  157. --no-defaults Don't read default options from any option file,
  158. except for login file.
  159. --defaults-file=# Only read default options from the given file #.
  160. --defaults-extra-file=# Read this file after the global files are read.
  161. --defaults-group-suffix=#
  162. Also read groups with concat(group, suffix)
  163. --login-path=# Read this path from the login file.
  164.  
  165. Variables (--variable-name=value)
  166. and boolean options {FALSE|TRUE} Value (after reading options)
  167. --------------------------------- ----------------------------------------
  168. auto-rehash TRUE
  169. auto-vertical-output FALSE
  170. bind-address (No default value)
  171. character-sets-dir (No default value)
  172. column-type-info FALSE
  173. comments FALSE
  174. compress FALSE
  175. debug-check FALSE
  176. debug-info FALSE
  177. database (No default value)
  178. default-character-set auto
  179. delimiter ;
  180. enable-cleartext-plugin FALSE
  181. vertical FALSE
  182. force FALSE
  183. named-commands FALSE
  184. ignore-spaces FALSE
  185. init-command (No default value)
  186. local-infile FALSE
  187. no-beep FALSE
  188. host (No default value)
  189. html FALSE
  190. xml FALSE
  191. line-numbers TRUE
  192. unbuffered FALSE
  193. column-names TRUE
  194. sigint-ignore FALSE
  195. port 0
  196. prompt mysql>
  197. quick FALSE
  198. raw FALSE
  199. reconnect TRUE
  200. socket (No default value)
  201. ssl FALSE
  202. ssl-ca (No default value)
  203. ssl-capath (No default value)
  204. ssl-cert (No default value)
  205. ssl-cipher (No default value)
  206. ssl-key (No default value)
  207. ssl-crl (No default value)
  208. ssl-crlpath (No default value)
  209. ssl-verify-server-cert FALSE
  210. table FALSE
  211. user (No default value)
  212. safe-updates FALSE
  213. i-am-a-dummy FALSE
  214. connect-timeout 0
  215. max-allowed-packet 16777216
  216. net-buffer-length 16384
  217. select-limit 1000
  218. max-join-size 1000000
  219. secure-auth TRUE
  220. show-warnings FALSE
  221. plugin-dir (No default value)
  222. default-auth (No default value)
  223. histignore (No default value)
  224. binary-mode FALSE
  225. connect-expired-password FALSE

【练习】显示MYSQL客户机选项的更多相关文章

  1. 【练习】如何显示本地主机上的MySQL客户机版本

    在终端窗口以oracle用户身份登录 [root@enmo ~]# su - oracle [oracle@enmo ~]$ mysql -V mysql Ver , for Linux (x86_6 ...

  2. 如何为MySQL服务器和客户机启用SSL

    本文来自我的github pages博客http://galengao.github.io/ 即www.gaohuirong.cn 摘要: mysql5.7后有ssl新特性 自己搭建mysql ent ...

  3. 客户机中PLSQL DEV访问虚拟机中的ORCLE11g,错误百出!

    客户机中PLSQL DEV访问虚拟机中的ORCLE11g,错误百出! 创建时间: 2017/10/14 18:44 作者: CNSIMO 标签: ORACLE 忙了一下午,只有两个字形容:麻烦!   ...

  4. 如何配置 Oracle VirtualBox 中的客户机与物理机网络

    当你在 Oracle VirtualBox 虚拟机软件 中安装了各种操作系统时,你可能需要实现物理机与虚拟机之间的相互访问. 在这篇文章中,我们将会以最简单明了的方式来说明如何配置客户机与 Linux ...

  5. 设置MySQL客户端连接使用的字符集

    设置MySQL客户端连接使用的字符集 时间:2014-03-05    来源:服务器之家    投稿:root 考虑什么是一个"连接":它是连接服务器时所作的事情.客户端发送SQL ...

  6. 问题解决——基于MSCOMM32.OCX控件的类在客户机不能创建控件

    大家不要笑我了,我不喜欢用那个人家写的串口类. 所以导出了MSCOMM32.OCX的类,然后在此基础上写了一个串口打印机的小工具类. -------------声明--------------- 本文 ...

  7. RPC 编程 使用 RPC 编程是在客户机和服务器实体之间进行可靠通信的最强大、最高效的方法之一。它为在分布式计算环境中运行的几乎所有应用程序提供基础。

    RPC 编程 使用 RPC 编程是在客户机和服务器实体之间进行可靠通信的最强大.最高效的方法之一.它为在分布式计算环境中运行的几乎所有应用程序提供基础.本文介绍 RPC 客户机和服务器之间基本的事件流 ...

  8. 如何把python最小化安装在客户机上面

    因为想尝试在我们的桌面软件中加入python支持,所以想简化python的库,到时候直接放到客户机上面,并且放到我们的目录下,尽量免去不必要的东西,也不要影响机子,不过当写好的程序放到测试机子上后,老 ...

  9. KVM客户机使用主机USB设备

    有些时候KVM客户机还是要使用USB设备,比如USB密钥等 KVM命令行参数 -usb 打开usb驱动程序,启动客户机usb支持 -usbdevice devname 为客户机增加usb设备,devn ...

随机推荐

  1. CGI技术原理

    一.CGI技术 1.1 CGI的提出 CGI是外部扩展应用程序与WWW服务器交互的一个标准接口.按照CGI标准编写的外部扩展应用程序可以处理客户端(一般是WWW浏览器)输入的协同工作数据,完成客户端与 ...

  2. 使用 HTML5 Shiv 让 IE 支持 HTML5

    HTML5 Shiv 使用 html5.js 必须在页面head元素内调用(因为 IE 必须在元素解析前知道这个元素,所以这个 JS 文件不能在页面底部调用.) 作者已经把js文件放在Google c ...

  3. 黄聪:WordPress 多站点建站教程(六):使用WP_Query、switch_to_blog函数实现获取子站点分类中的文章

    首先在你使用主题的funtions.php里面添加下代码: //根据时间显示最新的分类文章内容,每个站点显示一篇内容 //$blog_id 子站点ID //$catid 分类ID wp_reset_q ...

  4. EditPlus去行号/行标

    正则表达式1: [0-9]          ---------- > 1    2   3 正则表达式1: [0-9]+:       ---------- > 1:  2:  3: 正 ...

  5. 张恭庆编《泛函分析讲义》第二章第2节 $Riesz$ 定理及其应用习题解答

    在本节中, $\scrH$ 均指 $Hilbert$ 空间. 1.在极大闭子空间的交的最佳逼近元 设 $f_1,f_2,\cdots,f_n$ 是 $\scrH$ 上的一组线性有界泛函, $$\bex ...

  6. Ubuntu Server如何配置SFTP

    SH File Transfer Protocol是一个比普通FTP更为安全的文件传输协议.(参考资料:http://en.wikipedia.org/wiki/SSH_File_Transfer_P ...

  7. jQuery邮箱格式验证代码

    代码实例如下: <!DOCTYPE html><html><head><meta charset="utf-8"><meta ...

  8. 设置Linux下Mysql表名不区分大小写

    1.Linux下mysql安装完后是默认:区分表名的大小写,不区分列名的大小写:2.用root帐号登录后,在/etc/my.cnf中的[mysqld]后添加添加lower_case_table_nam ...

  9. Flask-SQLAlchemy 学习总结

    初始化和配置 ORM(Object Relational Mapper) 对象关系映射.指将面对对象得方法映射到数据库中的关系对象中.Flask-SQLAlchemy是一个Flask扩展,能够支持多种 ...

  10. [DataTable]C# datatable取最大值最小值

    ArrayList al = new ArrayList(); DataTable dt = new DataTable(); dt.Columns.Add("A",typeof( ...