Subject: | Add support for mysql* custom default options file |
There is no way to specify an alternate .my.cnf to use if there is no password and one wishes to not use the one that mysql and mysqldiff defaults to.
The mysql* binaries have the following options that affect the default options file:
--no-defaults Don't read default options from any option file.
--defaults-file=# Only read default options from the given file #.
--defaults-extra-file=# Read this file after the global files are read.
The justification for this is that there are security implications to passing the password in the commandline, but there is no way to use a default options file other than $HOME/.my.cnf.