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

empty MYSQL_USERNAME is not possible #26

Open
Cougar opened this issue Mar 1, 2019 · 0 comments
Open

empty MYSQL_USERNAME is not possible #26

Cougar opened this issue Mar 1, 2019 · 0 comments

Comments

@Cougar
Copy link

Cougar commented Mar 1, 2019

MYSQL_USERNAME="${MYSQL_USERNAME:=-clustercheckuser}"

always sets MYSQL_USERNAME to "clustercheckuser" if it is missing or empty. This will add --user parameter here

if [[ -n "$MYSQL_USERNAME" ]]; then
EXTRA_ARGS="$EXTRA_ARGS --user=${MYSQL_USERNAME}"
fi

and with that it always overrides username in /etc/my.cnf.

The right expansion should be:

MYSQL_USERNAME="${MYSQL_USERNAME-clustercheckuser}"

Also look at #23 (comment)

Cougar added a commit to Cougar/percona-clustercheck that referenced this issue Mar 1, 2019
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