4.2.3. Specifying Program Options
来源:互联网 发布:java ee se me 区别 编辑:程序博客网 时间:2024/06/05 16:14
Options are processed in order, so if an option is specified multiple times, the last occurrence takes precedence. The following command causes mysql to connect to the server running on localhost
:
shell> mysql -h example.com -h localhost
If conflicting or related options are given, later options take precedence over earlier options. The following command runs mysql in “no column names” mode:
shell> mysql --column-names --skip-column-names
MySQL programs determine which options are given first by examining environment variables, then by reading option files, and then by checking the command line. This means that environment variables have the lowest precedence and command-line options the highest.
You can take advantage of the way that MySQL programs process options by specifying default option values for a program in an option file. That enables you to avoid typing them each time you run the program while enabling you to override the defaults if necessary by using command-line options.
An option can be specified by writing it in full or as any unambiguous prefix. For example, the --compress
option can be given to mysqldump as --compr
, but not as --comp
because the latter is ambiguous:
shell> mysqldump --comp
mysqldump: ambiguous option '--comp' (compatible, compress)
Be aware that the use of option prefixes can cause problems in the event that new options are implemented for a program. A prefix that is unambiguous now might become ambiguous in the future.
As of MySQL 5.5.33, unambiguous prefixes are deprecated. If an unambiguous prefix is given, a warning occurs to provide feedback. Option prefixes are no longer supported in MySQL 5.7; only full options are accepted.
- 4.2.3. Specifying Program Options
- Boost 库Program Options--第二篇
- 程式執行參數處理函式庫:Boost Program Options(1/N)
- 程式執行參數處理函式庫:Boost Program Options(2/N)
- options
- Options
- options
- OPTIONS
- options
- options
- Specifying Device Types
- Specifying Attributes of Types
- Specifying Attributes of Variables
- Specifying Alternate Destinations
- Specifying Attributes of Variables
- program
- Program
- program
- 转 API Hook基本原理和实现
- SRM 384
- 数据库范式1NF 2NF 3NF 哇,这个也好详细
- linux(gentoo)内核编译-intel无线网卡驱动
- JAVA快捷键
- 4.2.3. Specifying Program Options
- SRM 550
- 不等式
- iOS-GCD的学习记录(2)
- 嵌入式设备的知识产权保护
- 4.2.3.1. Using Options on the Command Line
- [leet code] Merge Two Sorted Lists
- Java NIO——5 基于非阻塞编程NIO的例子
- Office 2013 SP1准备发布啦