在dos窗口输入mysql --help,可以看到mysql的OPTIONS,具体如下:

Usage: mysql [OPTIONS] [database]

-?, --help Display this help and exit.

-I, --help Synonym for -?

--auto-rehash Enable automatic rehashing. One doesn't need to use

'rehash' to get table and field completion, but startup

and reconnecting may take a longer time. Disable with

--disable-auto-rehash.

(Defaults to on; use --skip-auto-rehash to disable.)

-A, --no-auto-rehash

No automatic rehashing. One has to use 'rehash' to get

table and field completion. This gives a quicker start of

mysql and disables rehashing on reconnect.

--auto-vertical-output

Automatically switch to vertical output mode if the

result is wider than the terminal width.

-B, --batch Don't use history file. Disable interactive behavior.

(Enables --silent.)

--bind-address=name IP address to bind to.

--character-sets-dir=name

Directory for character set files.

--column-type-info Display column type information.

-c, --comments Preserve comments. Send comments to the server. The

default is --skip-comments (discard comments), enable

with --comments.

-C, --compress Use compression in server/client protocol.

-#, --debug[=#] This is a non-debug version. Catch this and exit.

--debug-check Check memory and open file usage at exit.

-T, --debug-info Print some debug info at exit.

-D, --database=name Database to use.

--default-character-set=name

Set the default character set.

--delimiter=name Delimiter to be used.

--enable-cleartext-plugin

Enable/disable the clear text authentication plugin.

-e, --execute=name Execute command and quit. (Disables --force and history

file.)

-E, --vertical Print the output of a query (rows) vertically.

-f, --force Continue even if we get an SQL error.

-G, --named-commands

Enable named commands. Named commands mean this program's

internal commands; see mysql> help . When enabled, the

named commands can be used from any line of the query,

otherwise only from the first line, before an enter.

Disable with --disable-named-commands. This option is

disabled by default.

-i, --ignore-spaces Ignore space after function names.

--init-command=name SQL Command to execute when connecting to MySQL server.

Will automatically be re-executed when reconnecting.

--local-infile Enable/disable LOAD DATA LOCAL INFILE.

-b, --no-beep Turn off beep on error.

-h, --host=name Connect to host.

-H, --html Produce HTML output.

-X, --xml Produce XML output.

--line-numbers Write line numbers for errors.

(Defaults to on; use --skip-line-numbers to disable.)

-L, --skip-line-numbers

Don't write line number for errors.

-n, --unbuffered Flush buffer after each query.

--column-names Write column names in results.

(Defaults to on; use --skip-column-names to disable.)

-N, --skip-column-names

Don't write column names in results.

--sigint-ignore Ignore SIGINT (CTRL-C).

-o, --one-database Ignore statements except those that occur while the

default database is the one named at the command line.

-p, --password[=name]

Password to use when connecting to server. If password is

not given it's asked from the tty.

-W, --pipe Use named pipes to connect to server.

-P, --port=# Port number to use for connection or 0 for default to, in

order of preference, my.cnf, $MYSQL_TCP_PORT,

/etc/services, built-in default (3306).

--prompt=name Set the mysql prompt to this value.

--protocol=name The protocol to use for connection (tcp, socket, pipe,

memory).

-q, --quick Don't cache result, print it row by row. This may slow

down the server if the output is suspended. Doesn't use

history file.

-r, --raw Write fields without conversion. Used with --batch.

--reconnect Reconnect if the connection is lost. Disable with

--disable-reconnect. This option is enabled by default.

(Defaults to on; use --skip-reconnect to disable.)

-s, --silent Be more silent. Print results with a tab as separator,

each row on new line.

--shared-memory-base-name=name

Base name of shared memory.

-S, --socket=name The socket file to use for connection.

--ssl Enable SSL for connection (automatically enabled with

other flags).

--ssl-ca=name CA file in PEM format (check OpenSSL docs, implies

--ssl).

--ssl-capath=name CA directory (check OpenSSL docs, implies --ssl).

--ssl-cert=name X509 cert in PEM format (implies --ssl).

--ssl-cipher=name SSL cipher to use (implies --ssl).

--ssl-key=name X509 key in PEM format (implies --ssl).

--ssl-crl=name Certificate revocation list (implies --ssl).

--ssl-crlpath=name Certificate revocation list path (implies --ssl).

--ssl-verify-server-cert

Verify server's "Common Name" in its cert against

hostname used when connecting. This option is disabled by

default.

-t, --table Output in table format.

--tee=name Append everything into outfile. See interactive help (\h)

also. Does not work in batch mode. Disable with

--disable-tee. This option is disabled by default.

-u, --user=name User for login if not current user.

-U, --safe-updates Only allow UPDATE and DELETE that uses keys.

-U, --i-am-a-dummy Synonym for option --safe-updates, -U.

-v, --verbose Write more. (-v -v -v gives the table output format).

-V, --version Output version information and exit.

-w, --wait Wait and retry if connection is down.

--connect-timeout=# Number of seconds before connection timeout.

--max-allowed-packet=#

The maximum packet length to send to or receive from

server.

--net-buffer-length=#

The buffer size for TCP/IP and socket communication.

--select-limit=# Automatic limit for SELECT when using --safe-updates.

--max-join-size=# Automatic limit for rows in a join when using

--safe-updates.

--secure-auth Refuse client connecting to server if it uses old

(pre-4.1.1) protocol.

(Defaults to on; use --skip-secure-auth to disable.)

--server-arg=name Send embedded server this as a parameter.

--show-warnings Show warnings after every statement.

--plugin-dir=name Directory for client-side plugins.

--default-auth=name Default authentication client-side plugin to use.

--histignore=name A colon-separated list of patterns to keep statements

from getting logged into mysql history.

--binary-mode By default, ASCII '\0' is disallowed and '\r\n' is

translated to '\n'. This switch turns off both features,

and also turns off parsing of all clientcommands except

\C and DELIMITER, in non-interactive mode (for input

piped to mysql or loaded using the 'source' command).

This is necessary when processing output from mysqlbinlog

that may contain blobs

get mysql options_mysql命令的选项options相关推荐

  1. 一个网络管理员应该掌握的mysql管理命令

    一个网络管理员应该掌握的mysql管理命令 一. 数据库基本管理: 1. 登陆及退出数据库: 将root密码设置:pwd@123,并在次登陆(使用mysqladmin): 2. 显示数据库结构: 查看 ...

  2. mysql怎么退出时保存导出_Mysql应用使用MySQL MySqldump命令导出数据时的注意事项...

    <Mysql应用使用MySQL MySqldump命令导出数据时的注意事项>要点: 本文介绍了Mysql应用使用MySQL MySqldump命令导出数据时的注意事项,希望对您有用.如果有 ...

  3. mysql命令导出数据不完整_使用MySQL MySqldump命令导出数据时的注意事项

    今天使用mysqldump命令备份数据的时候出现了一个问题. 一开始迁移 Discuz 7 论坛的 mysql 数据库时,采用 mysqldump 命令的时候一切顺利,但导入的时候却遇到了 ERROR ...

  4. MYSQL 连接数据库命令收藏

    一.MySQL 连接本地数据库,用户名为"root",密码"123"(注意:"-p"和"123" 之间不能有空格) C: ...

  5. MYSQL常用命令(转载)

    1.导出整个数据库 mysqldump -u 用户名 -p --default-character-set=latin1 数据库名 > 导出的文件名(数据库默认编码是latin1) mysqld ...

  6. linux 命令行选项

    命令行选项风格 1.原始unix风格      a.命令行选项以连字符'-'开头,后跟单个字符表示选项,选项后面跟着取值,如:mysql -hlocalhost b.选项不带取值的,可以组合在一起,如 ...

  7. linux解压mysql文件命令行_linux mysql命令

    1.linux下启动mysql的命令: mysqladmin start /ect/init.d/mysql start (前面为mysql的安装路径) 2.linux下重启mysql的命令: mys ...

  8. MySQL之命令mysql -- MySQL服务器的客户端工具

    文章目录 命令介绍 选项说明 `-A` `--execute=statement, -e statement` 参考示例 登录数据库 执行指定的脚本文件 将指定脚本文件的内容导入(或者重载)到指定数据 ...

  9. mysql show 命令_mysql show 相关命令

    processlist的show方式是不能使用过滤查找,可能源自MySQL的内部安全机制吧,show是用来查看MySQL内部运行数据,其实processlist就是 information_schem ...

最新文章

  1. 【iOS 开发】iOS 开发 简介 (IOS项目文件 | MVC 模式 | 事件响应机制 | Storyboard 控制界面 | 代码控制界面 | Retina 屏幕图片适配)
  2. php clear(),PHP Ds\Collection clear()用法及代码示例
  3. OpenGL 加载模型Model
  4. python 计算小于某个数_python 列表寻找满足某个条件的开始索引和结束索引、区间范围...
  5. python网球比赛模拟_Python-体育竞技模拟
  6. 枚举、位操作 CLR学习第十二课
  7. 【BZOJ3831】Little Bird,单调队列优化DP
  8. 还想呆在公司养老?别做梦了
  9. [声纹识别]语音识别的发展史
  10. 隐藏部分内容,点击按钮显示全部内容
  11. 百度地图 创建应用
  12. 云计算虚拟化特点和了解
  13. 【机器学习】一文彻底搞懂自动机器学习AutoML:H2O
  14. c语言10迷宫,C语言实现走迷宫
  15. Python Django框架下做电商项目
  16. 推荐上百本优质大数据书籍,附必读清单(大数据宝藏)
  17. vue使用three.js加载.FBX模型文件
  18. 教程|GIS制图教程02
  19. C语言打印到txt文件
  20. 【头歌实验】四、Python分支结构

热门文章

  1. 2天后mysql_mysql 学习笔记 第二天
  2. 驳《阿里「Java开发手册」中的1个bug》?
  3. Kubernetes 1.20 报错:“open /run/flannel/subnet.env: no such file or directory“
  4. mysql tomcat列表增删改查_Tomcat-Database
  5. java对jsonarray去重复_java 去除jsonarray里面jsonarray的重复和合并数据
  6. java 加密 encrypt_JAVA Encrypter 加密算法
  7. vue实现查询多条记录_vue.js 实现天气查询
  8. java怎么将程序保存在桌面_在Java桌面应用程序中保留数据的最佳方法是什么?...
  9. c mysql 双主复制_mysql双主复制及使用keepalived作高可用的配置详解
  10. win7系统应用程序安装不了的解决教程