6.2.2.3 Command-Line Options that Affect Option-File Handling (original) (raw)

6.2.2.3 Command-Line Options that Affect Option-File Handling

Most MySQL programs that support option files handle the following options. Because these options affect option-file handling, they must be given on the command line and not in an option file. To work properly, each of these options must be given before other options, with these exceptions:

When specifying file names as option values, avoid the use of the ~ shell metacharacter because it might not be interpreted as you expect.

mysql --login-path=mypath  

By default, the mysql client reads the[client] and [mysql] option groups. So for the command shown,mysql reads [client] and [mysql] from other option files, and[client], [mysql], and[mypath] from the login path file.
Client programs read the login path file even when the--no-defaults option is used, unless--no-login-paths is set.
To specify an alternate login path file name, set theMYSQL_TEST_LOGIN_FILE environment variable.
See the introduction to this section regarding constraints on the position in which this option may be specified.