Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

passwords with special characters #12

Open
javelina73 opened this issue May 15, 2023 · 0 comments
Open

passwords with special characters #12

javelina73 opened this issue May 15, 2023 · 0 comments

Comments

@javelina73
Copy link

Describe the bug
when using this script with use_credentials and the credentials have special characters it will fail with error "binary operator expected" and the script will exit with error "mysql command has failed (bad credentials?)"

To Reproduce
Steps to reproduce the behavior:

  1. create a mysql user account with a password that contains special characters
  2. configure this script with use_credentials using the credentials created in step 1

Expected behavior
The prefreeze script should execute successfully regardless of characters in the password.

Desktop (please complete the following information):

  • OS: rhel 8.7
  • veeam v12
  • mysql 8.0

Resolution: change the following from:
if [ -n $use_credentials ]; then
opts="$opts $use_credentials"
fi

To:

if [[ -n $use_credentials ]]; then
opts="$opts $use_credentials"
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant