Thank you very much for making this available. I have a small improvement request. Could support for the --login-path parameter for the mysql client be added to this script ?
For example if a new "-l" switch was added the affected lines of code might be something like these (plus relevant documentation changes):
...
while getopts "H:P:u:p:S:s:w:c:o:m:h:l" Input;
...
l) loginpath="--login-path=${OPTARG}";;
...
then for the case we receive the -l switch the invoke of the mysql client would be
ConnectionResult=$(mysql ${loginpath} ${optfile} ... -e "show slave ${connection} status\G" 2>&1)
...
Thank you again for considering this
Thank you very much for making this available. I have a small improvement request. Could support for the --login-path parameter for the mysql client be added to this script ?
For example if a new "-l" switch was added the affected lines of code might be something like these (plus relevant documentation changes):
...
while getopts "H:P:u:p:S:s:w:c:o:m:h:l" Input;...
l) loginpath="--login-path=${OPTARG}";;...
then for the case we receive the -l switch the invoke of the mysql client would be
ConnectionResult=$(mysql ${loginpath} ${optfile} ... -e "show slave ${connection} status\G" 2>&1)...
Thank you again for considering this