Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

11. Using an Options File > Search Order for Options Files

Search Order for Options Files

The MySQL server and client programs look for options files in the standard locations and read them in order; values from later files take precedence over earlier ones. Options specified on the command line override values from options files.

You can tell a MySQL program to ignore the default options files by telling it to read a specific file at a location given with the defaults-file option. For example, you can write:

$ mysql --defaults-file=path_to_options_file

If you’d like to use an options file alongside the default files, you can specify it using the defaults-extra-file option:

$ mysql --defaults-extra-file=path_to_local_options_file

Finally, you can prevent programs from reading in any options files by adding the no-defaults option:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial