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

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

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

忽视函数名后面的空&#

免责声明: 本文仅代表作者个人观点,与无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。

相关资料

推荐阅读

友情链接:
Copyright © 2013-2023 页 当前在线:372人  网站在2时17分10秒内访问总人数:25714人 当前 23.34%  

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

相关文章:

你感兴趣的文章:

标签云: