翻译[mysql --help]

 

mysql  Ver 14.14 Distrib 5.5.32, for Linux (x86_64) using readline 5.1

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

 

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

翻译【mysql 14.14版本发布于5.5.32,在64linux上使用属于5.1的大版本

版权信息归oracle及其其他公司,保留所有权】

Usage: mysql [OPTIONS] [database]

翻译【使用方法: mysql [选项] [数据库]

 

A .

-?, --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.)

翻译【启动自动补全功能,自动补全,只是提示表名,和表里面的字段名,但是启动和连接可能需要更长的时间。使用--skip-auto-rehash关闭。

(默认开启,使用--skip-auto-rehash关闭)】

-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.

翻译【关闭自动补全功能,需要输入完整的表和字段名,这使得mysql得启动和连接更加快速。】

 

--auto-vertical-output

 

Automatically switch to vertical output mode if the result is wider than the terminal width.

翻译【如果输出结果比终端宽度宽,自动切换到垂直输出模式。】

 

 

B .

 -B, --batch

 

Don't use history file. Disable interactive behavior. (Enables --silent.)

翻译【不要使用历史记录文件。禁用交互式行为。

使用--silent开启。】

-b, --no-beep

 

Turn off beep on error.

翻译【sql错误时,禁止嘟的一声

C .

 --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.

翻译【保留注释。向服务器发送注释。默认值是 --skip-comments (放弃注释), 使用--comments开启注释。】

 

 

 

-C, --compress

 

Use compression in server/client protocol.

翻译【在客户端和服务器端传递信息时使用压缩。】

-#, --debug[=#]

 

This is a non-debug version. Catch this and exit.

翻译【开启bug调用功能。】

--column-names

 

 Write column names in results.

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

翻译【在结果中写入列名。

(默认为 开启; 使用--skip-column-names以禁用。)】

  --connect-timeout=#

 

Number of seconds before connection timeout.

翻译【连接超时前的秒数。】

D .

--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.

翻译【指定语句的结束符,MySQL默认为";"。】

 --default-auth=name

 

 Default authentication client-side plugin to use.

翻译【要使用的默认身份验证客户端插件。】

E .

--enable-cleartext-plugin

 

Enable/disable the clear text authentication plugin.

翻译【启用/禁用明文身份验证插件。】

-e, --execute=name

 

Execute command and quit. (Disables --force and history file.)

翻译【执行mysql命令并退出。】

-E, --vertical

 

Print the output of a query (rows) vertically.

翻译【垂直打印查询 () 的输出。】

F .

-f, --force

 

Continue even if we get an SQL error.

翻译【如果有错误跳过去,继续执行下面的。】

G .

 -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.

翻译【启用命名命令。命名命令意味着该程序的内部命令; mysql > help。启用此选项后, 可以从查询的任何行 (否则仅从第一行开始) 在输入之前使用命名命令。使用--disable-named-commands禁止命名命令。默认情况下禁用此选项。】

H .

-h, --host=name

 

Connect to host.

翻译【指定要连接的主机。】

-H, --html

 

Produce HTML output.

翻译【生成 HTML 输出。】

I .

 -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.

翻译【要在连接到 MySQL 服务器时执行的 SQL 命令。将在重新连接时自动执行。】

J .

K .

L .

 --local-infil

 

Enable/disable LOAD DATA LOCAL INFILE.

翻译【启动/禁用 LOAD DATA LOCAL INFILE。】

--line-numbers

 

 Write line numbers for errors.

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

翻译【写入错误的行号。

 (默认为 开启; 使用--skip-line-numbers以禁用。)】

 -L, --skip-line-numbers

 

Don't write line number for errors.

翻译【不要为错误写行号。】

M .

--max-allowed-packet=#

 

The maximum packet length to send to or receive from  server.

翻译【从服务器发送或接收的最大包长度。】

--max-join-size=# 

 

Automatic limit for rows in a join when using--safe-updates.

翻译【使用--safe-updates时联接中的行的自动限制 

N .

-n, --unbuffered

 

Flush buffer after each query.

翻译【每次查询后刷新缓冲区。】

  -N, --skip-column-names

 

Don't write column names in results.

翻译【不要在结果中写入列名。】

--net-buffer-length=#

 

The buffer size for TCP/IP and socket communication.

翻译【TCP/IPsocket通信的缓冲区大小。】

O .

-o, --one-database

 

Ignore statements except those that occur while the default database is the one named at the command line.

翻译【忽视除了为命令行中命名的默认数据库的语句。可以帮跳过日志中的其它数据库的更新。

 

P .

--pager[=name]

 

Pager to use to display results. If you don't supply an option, the default pager is taken from your ENV variable PAGER. Valid pagers are less, more, cat [> filename],etc. See interactive help (\h) also. This option does not work in batch mode. Disable with --disable-pager. This option is disabled by default.

翻译【分页显示结果。如果不提供该选项,默认为变量环境中的分页显示工具。有效的分页显示有less,more,cat。也可以查看help。这些选项在批处理下不起作用,使用--disable-pager禁止此功能,默认是禁止的。】

-p, --password[=name]

 

Password to use when connecting to server. If password is not given it's asked from the tty.

翻译【连接到服务器时使用的密码。】

-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).

翻译【指定连接服务器的端口优先于my.cnf中的端口配置,默认为3306

--prompt=name

 

Set the mysql prompt to this value.

翻译【设置mysql的提示符】

--protocol=name

 

The protocol to use for connection (tcp, socket, pipe,memory).

翻译【用于连接的协议(TCP、套接字、管道、内存)。】

--plugin-dir=name

 

Directory for client-side plugins.

翻译【客户端插件的目录。】

Q .

 -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 .

 -r, --raw

 

Write fields without conversion. Used with --batch.

翻译【无转换写入字段。

--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.)

翻译【如果连接丢失,请重新连接。使用--disable-reconnect禁止此功能。默认情况下启用此选项。(默认设置为使用;使用--skip-reconnect关闭。)】

S .

 --sigint-ignore

 

Ignore SIGINT (CTRL-C).

翻译【忽略信号(CTRL-C)】

-s, --silent

 

Be more silent. Print results with a tab as separator, each row on new line.

翻译【一行一行输出,中间有tab分隔。

-S, --socket=name

 

The socket file to use for connection.

翻译【指定一个socket文件连接数据库。】

 --select-limit=#   

 

Automatic limit for SELECT when using --safe-updates.

翻译【用--safe-updatesSELECT语句的自动限制】

--secure-auth  

 

Refuse client connecting to server if it uses old(pre-4.1.1) protocol.

翻译【如果客户端使用旧的 (4.1 1) 协议, 则拒绝连接到服务器。

--server-arg=name

 

Send embedded server this as a parameter.

翻译【将嵌入式服务器作为参数发送。】

  --show-warnings  

 

Show warnings after every statement.

翻译【每次语句后显示警告。】

 

 

T .

-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.

翻译【将输出拷贝添加到给定的文件中,禁时用--disable-tee ,默认关闭。】

U .

-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.

翻译【与--safe-updates选项一样。】

V .

-v, --verbose

 

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

翻译【输出mysql执行的语句。】

 -V, --version

 

Output version information and exit.

翻译【输出版本信息并退出。】

W .

  -w, --wait

 

Wait and retry if connection is down.

翻译【如果连接失败,请等待并重试。】

X .

-X, --xml

 

Produce XML output.

翻译【生成XML输出。】

Y .

Z .

AA . Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /application/mysql-5.5.32/etc/my.cnf ~/.my.cnf

 

默认选项是按照给定顺序从下列文件中读取的:

/etc/my.cnf /etc/mysql/my.cnf /application/mysql-5.5.32/etc/my.cnf ~/.my.cnf

The following groups are read: mysql client
The following options may be given as the first argument:

 

下面的组被读取: mysql 客户端

以下选项可作为第一个参数提供:

 

 

--print-defaults

 

 Print the program argument list and exit.

翻译【打印程序参数列表并退出。】

--no-defaults

 

Don't read default options from any option file.

翻译【不要从任何选项文件中读取默认选项。】

--defaults-file=#

 

Only read default options from the given file #.

翻译【仅从给定文件#中读取默认选项 。】

--defaults-extra-file=#

 

 Read this file after the global files are read.

翻译【读取全局文件后读取此文件。】

Variables (--variable-name=value)
and boolean options {FALSE|TRUE}  Value (after reading options)

 

变量 (-变量名 = 值)

和布尔选项 {FALSE |TRUE} (读取选项后)

 

 

auto-rehash                       FALSE

auto-vertical-output              FALSE

character-sets-dir                (No default value)

column-type-info                  FALSE

comments                          FALSE

compress                          FALSE

debug-check                       FALSE

debug-info                        FALSE

database                          (No default value)

default-character-set             auto

delimiter                         ;

enable-cleartext-plugin           FALSE

vertical                          FALSE

force                             FALSE

named-commands                    FALSE

ignore-spaces                     FALSE

init-command                      (No default value)

local-infile                      FALSE

no-beep                           FALSE

host                              (No default value)

html                              FALSE

xml                               FALSE

line-numbers                      TRUE

unbuffered                        FALSE

column-names                      TRUE

sigint-ignore                     FALSE

port                              3306

prompt                            mysql>

quick                             FALSE

raw                               FALSE

reconnect                         TRUE

socket                            /application/mysql-5.5.32/tmp/mysql.sock

table                             FALSE

user                              (No default value)

safe-updates                      FALSE

i-am-a-dummy                      FALSE

connect-timeout                   0

max-allowed-packet                16777216

net-buffer-length                 16384

select-limit                      1000

max-join-size                     1000000

secure-auth                       FALSE

show-warnings                     FALSE

plugin-dir                        (No default value)

default-auth                      (No default value)