Add possibility for pt-online-schema-change to read DSN from the configuration file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Not everybody wants to share credentials information such as user names and passwords on command line. For most of tools in Percona Toolkit users can specify such credentials in the configuration file and pass it with option --config. But this is not true for pt-online-
cat >issue53309.cnf
D=test,
^C
pt-online-
Unknown option: config
Usage: pt-online-
Errors in command-line arguments:
* Error parsing options
* A DSN must be specified
* The DSN must specify a database (D) and a table (t)
pt-online-
writes. Specify the database and table in the DSN. Do not use this tool before
reading its documentation and checking your backups carefully. For more
details, please use the --help option, or try 'perldoc
/home/sveta/
complete documentation.
As workaround users can pass credentials using --defaults-file, but this way they have to specify rest of arguments on command line. Also this workaround would not work for hosts, different from localhost, due to bug #1314696
$pt-online- schema- change --version schema- change 2.2.13
pt-online-