MYSQL入门学习之十六:MYSQL命令参数详解
相关链接:
MYSQL入门学习之一:基本操作
http://www.2cto.com/database/201212/173868.html
MYSQL入门学习之二:使用正则表达式搜索
http://www.2cto.com/database/201212/173869.html
MYSQL入门学习之三:全文本搜索
http://www.2cto.com/database/201212/173873.html
MYSQL入门学习之四:MYSQL的数据类型
http://www.2cto.com/database/201212/175536.html
MYSQL入门学习之五:MYSQL的字符集
http://www.2cto.com/database/201212/175541.html
MYSQL入门学习之六:MYSQL的运算符
http://www.2cto.com/database/201212/175862.html
MYSQL入门学习之七:MYSQL常用函数
http://www.2cto.com/database/201212/175864.html
MYSQL入门学习之八:
数据库及表的基本操作
http://www.2cto.com/database/201212/175867.
html
MYSQL入门学习之九:索引的简单操作
http://www.2cto.com/database/201212/176772.html
MYSQL入门学习之十:视图的基本操作
http://www.2cto.com/database/201212/176775.html
MYSQL入门学习之十一:触发器的基本操作
http://www.2cto.com/database/201212/176781.html
MYSQL入门学习之十二:存储过程的基本操作
http://www.2cto.com/database/201212/177380.html
MYSQL入门学习之十三:自定义函数的基本操作
http://www.2cto.com/database/201212/177382.html
MYSQL入门学习之十四:游标的基本操作
http://www.2cto.com/database/201212/177384.html
MYSQL入门学习之十五:事务处理的基本操作
http://www.2cto.com/database/201212/177385.html
一、MYSQL命令行参数的详细说明
www.2cto.com
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
忽视函数名后面的空格.
--local-infile
启动/禁用LOAD DATA LOCAL INFILE.
-b, --no-beep
sql错误时,禁止嘟的一声
-h, --host=