日期:2014-05-16  浏览次数:20728 次

MYSQL入门学习之十六:MYSQL命令参数详解

一、MYSQL命令行参数的详细说明

         Usage:mysql [OPTIONS] [database]

         下面为各选项的详细说明:

-?, --help

显示帮助信息并退出

-I, --help

显示帮助信息并退出

--auto-rehash

自动补全功能,就像linux里面,按Tab键出提示差不多

-A, --no-auto-rehash

默认状态是没有自动补全功能的。-A就是不要自动补全功能

-B, --batch

mysql不使用历史文件,禁用交互

--character-sets-dir=name

字体集的安装目录

--default-character-set=name

设置数据库的默认字符集

--column-type-info

结果集返回时,同时显示字段的类型等相关信息

-c, --comments

Preserve comments. Send comments to the server. The 

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

with --comments                                     

-C, --compress

在客户端和服务器端传递信息时使用压缩

-#, --debug[=#]

bug调用功能

-D, --database=name

使用哪个数据库

--default-character-set=name

设置默认的字符集

--delimiter=name

设置默认命令结束符

-e, --execute=name

执行mysql的sql语句

-E, --vertical

垂直打印查询输出

-f, --force

如果有错误跳过去,继续执行下面的

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

-g, --no-named-commands

Named commands are disabled. Use \* form only, or use  

named commands only in the beginning of a line ending  

with a semicolon (;) Since version 10.9 the client now 

starts with this option ENABLED by default! Disable with

'-G'. Long format commands still work from the first   

line. WARNING: option deprecated; use                  

--disable-named-commands instead.                      

-i, --ignore-spaces

忽视函数名后面的空&#